Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 how to display duplicate records from a table

Author  Topic 

mavericky
Posting Yak Master

117 Posts

Posted - 2011-09-27 : 18:15:19
Hi,
I have a temporary table consisting of duplicate records. How can I write a query to display only duplicate records?

Thanks,
Mavericky

Random
Starting Member

3 Posts

Posted - 2011-09-27 : 21:43:36
SELECT * FROM temporary_table WHERE column1 = column2 AND column2 = column3...
Go to Top of Page

vmvadivel
Yak Posting Veteran

69 Posts

Posted - 2011-09-27 : 22:14:04
There are various ways and it depends on your table structure as well. Check this out http://support.microsoft.com/kb/139444


Best Regards
Vadivel

http://vadivel.blogspot.com
Go to Top of Page

mavericky
Posting Yak Master

117 Posts

Posted - 2011-09-27 : 22:42:51
Thanks a lot for the replies!! It was helpful!!
Go to Top of Page
   

- Advertisement -