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 |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2004-02-09 : 08:42:48
|
| Ed writes "Is there a command that does the opposite of a DISTINCT? Let's say I have a table and I want to return only the rows that are there twice or more..." |
|
|
AndrewMurphy
Master Smack Fu Yak Hacker
2916 Posts |
Posted - 2004-02-09 : 08:47:21
|
| search here for "duplicates"...basically it involves the following style command.SELECT mycolumn, count(*) from mytableGROUP BY mycolumnHAVING count(*) > 1 |
 |
|
|
|
|
|