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 |
|
mnolting
Starting Member
36 Posts |
Posted - 2007-06-28 : 16:38:49
|
| Is there a way to see a list of duplicate records??EG There is a field named "Invoice" in a table named "Orders" and I want to see only records where the same invoice shows more than once.Sample output:Invoice--Partno123------a66123------9pp123------k335988-----j225988-----bx166-------pq166-------333etc......ThanksMike |
|
|
hey001us
Posting Yak Master
185 Posts |
Posted - 2007-06-28 : 16:46:33
|
| SELECT invoice FROM ordersGROUP BY invoice HAVING COUNT(invoice) > 1hey |
 |
|
|
|
|
|