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 |
|
gagani
Posting Yak Master
112 Posts |
Posted - 2012-05-24 : 15:26:32
|
| orderid name100 A100 B100 C101 D101 E102 FI want the list of orderids which has repeated more than twice.the output of above should be 100 |
|
|
bitsmed
Aged Yak Warrior
545 Posts |
Posted - 2012-05-24 : 15:32:13
|
| [code]select orderid from table group by orderid having count(*)>2[/code] |
 |
|
|
|
|
|