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 |
venkath
Posting Yak Master
202 Posts |
Posted - 2009-02-17 : 13:01:32
|
Hi allHow to remove duplicte records from a table which has no primary key in it.I have a table with the data like thisTable-----col1 col2---- ----1 a2 b 1 a2 b . .. .. ...Thanks in advance. |
|
mfemenel
Professor Frink
1421 Posts |
Posted - 2009-02-17 : 13:03:24
|
You can use distinct to select them out. How many rows in your table? select distinct col1,col2 into holdertable from primarytableMike"oh, that monkey is going to pay" |
 |
|
sakets_2000
Master Smack Fu Yak Hacker
1472 Posts |
Posted - 2009-02-17 : 13:24:46
|
Read thru this,http://www.sqlteam.com/article/deleting-duplicate-records |
 |
|
|
|
|