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 |
Delinda
Constraint Violating Yak Guru
315 Posts |
Posted - 2008-09-02 : 20:51:06
|
Hi,I need help to display duplicate rows (more than 1 record) in my table. Let's say my table astblCurrUserUsrID | UsrModule--------------------189 | Kmi144 | Kmi189 | Kmi187 | Kmi121 | Kmi134 | Kmi188 | Kmi187 | Kmi188 | Kmi187 | Kmi......How to built SQL to display duplicate record? The expected result as follow,189189187187187188188...... |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2008-09-02 : 20:53:02
|
[code]select UsrIDfrom tblCurrUsergroup by UsrIDhaving count(*) > 1[/code] KH[spoiler]Time is always against us[/spoiler] |
 |
|
Delinda
Constraint Violating Yak Guru
315 Posts |
Posted - 2008-09-03 : 01:05:39
|
tq very much. |
 |
|
|
|
|