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.
| Author |
Topic |
|
Sep410
Posting Yak Master
117 Posts |
Posted - 2008-06-09 : 12:44:44
|
| Hi,I have a table which has duplicated records sometimes. How can I write a query that returns only duplicated records?ExpName ID TelJohn 123 99999999Derek 548 88888888Raj 798 777777777John 123 99999999I need to see:Name ID TelJohn 123 99999999Please help me.Sep |
|
|
jdaman
Constraint Violating Yak Guru
354 Posts |
Posted - 2008-06-09 : 12:53:08
|
| select Name, ID, Tel from YourTablegroup by Name, ID, Telhaving count(*) > 1 |
 |
|
|
Sep410
Posting Yak Master
117 Posts |
Posted - 2008-06-09 : 12:58:32
|
| Thank you.Sep |
 |
|
|
|
|
|