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 |
rockingdesi
Starting Member
31 Posts |
Posted - 2007-09-18 : 11:20:35
|
Hi,I have a table with no primary key and i just want to see all the duplicate entries on the basis of two columns. Can anyone suggest me how should i go about it.Can anyone provide me the syntax for the same?I have only 1 table say ISSR_TBL and two columns using which i want to delete the duplicate ones. i.e. MIN and MAX.Please help me out... |
|
jimf
Master Smack Fu Yak Hacker
2875 Posts |
Posted - 2007-09-18 : 11:41:59
|
select col1, col2 , count(*)from ISSR_TBLgroup by col1,col2having count(*) >1Jim |
|
|
X002548
Not Just a Number
15586 Posts |
|
rockingdesi
Starting Member
31 Posts |
Posted - 2007-09-18 : 12:05:11
|
Thanks Brett and Jim...This was really helpful.... |
|
|
|
|
|