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
lower lights
call .rdl with store procedure with parameter
Can I add multi-millions of records to SQL database while replication is on? Will it work?
unknown process - should I be concerned
MySQL Rows to Columns by Group
Quickr..How do I edit the tabs on the home page of my place? I want to add a tab
What is the best tool to repair corrupted jpeg files missing its header?
Import text file - definition (field name, delimited, lng) based on a table
Can't send emails (Vista Business, United Kingdom, Demon Mailbox/Demon Broadband)
obtain source (/usr/src) for 8.0-RELEASE-p3