Microsoft
Software
Hardware
Network
Question : Check for Duplicates
I have two columns in my Table - Col1 Col2
Col1 and Col2 contain values that should be unique to the table - so no two rows alike - how can I check for this against both columns?
Answer : Check for Duplicates
Hi,
If your table do not have an index, you can use HAVING to do that, like this
select Col1, Col2, Count(1) from YOURTABLE
Group By Col1, Col2
Having Count(1) > 1
This will show you the duplicates.
Hope it helps
Random Solutions
override err.raise?
Cisco IPS-4250 - Able to push to syslog server?
Writing DLL in Delphi 7
folder redirection not updating to new server via GP
Virtual Data Recovery Error
Cannot read hard drive
require include paths
Ho to resole credential issues on Network Load Balancing
SSRS multiple parameters
How can I shrink a LDF file of 54GB?