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
asp.net: How to determine if a when a user login. is an Admin Account, * the menu is selected to show admin pages & reports.
breadcrumb trail in a dropdown box
Zebra LP 2844 label printer prints the first print job successfully, subsequent print jobs after skip labels and/or print partial data on labels until computer is rebooted.
how to hide/ view columns in a gridview using checkboxes in CustomEditorpart in sharepoint
mySQL complicated unions and subqueries
VMware ESXI help
Delivery not authorized, message refused. 550-5.7.1 Message targeted to organization's federated delivery mailbox.
Microsoft Access Database Engine 2010 Redistributable and "OpenRowSet"
Gmail Like File Upload
Php 500 internal server error received on website but not using xampp at home