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
Self signed Exchange 2007 cert and Samsung Blackjack
Citrix presentation Svr 4.5 - Data collector election
Please suggest a suitable router
download file with as3
how do I reorganise a text file in powershell ?
RPC through HTTP keeps prompting for pw on Exchange 2010
Passing a structure from VBA in Excel to a C DLL
Javascript form validation problems
Konica Minolta bizhub c253/exchange 2007. Scan to email from address will not stay changed
DB2 vs SQLServer