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
Monitoring Exchange 2007 Queues
IOS VPN Configuration for iPhone
DSUM with multiple rows and multiple columns
Domain authentication extremely slow
Clear repeating values from an excel column with VBA
VB.Net exe, icon and shortcut
kaspersky 2010 Anti Virus Outlook 2007 html image viewing
Replace string in Hyperlink Address
Visual Studio 2010 ASP.NET 4.0 not registered error
Transaction in entity framework