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
Count/sum items between dates
Edge Sync Fails
How do I get a user ID from a logged in user and include it in my query
Setting up wireless on a Cisco 1811
jQuery or JS - Checkbox set/unset in an array?
How do I update file, save to new location and keep original file as is using Visual Basic 2008?
How to update Hyperlinks in Excel 2003?
Clients not connecting to WSUS
return double array in Delphi call to c++
dcpromo a child domain