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
Where does RHEL5 get update & packages from?
prstat vs top command
VBA macro script populating cells from data source
builing a basic Advertise with Us Functionality!
Syntax error (missing operator) in query expression
Computer boots only so often
Assigning values to a range of cells in Excel with VBA
Sysprep failed to set computername
Display logon message to new users at first logon.
No Networking Installed on Windows 2008 VM After Migrating From VMWARE Server to ESXi Server