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.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Another Delete Problem

Author  Topic 

shohelic
Starting Member

6 Posts

Posted - 2007-01-31 : 00:51:43
I'v a table tab1 without any identity colum. There are many rows. But it has some duplicate rows, which are same with each column. Look at the table:
--------------------------------------
id dist div thana mouza
--------------------------------------
1 DH DH GP SD
2 DH AB GP FG
2 DH AB GP FG

3 CG RT TP ER
4 CG RT RT YU
4 CG RT RT YU
4 CG RT RT YU

5 RJ RP HL RR
6 RJ FG HJ LK
---------------------------------------
I want to delete the duplicate rows accept 1. I mean I want to keep 1 row and delete the other row(s). See the hilighted rows. I want to keep 1 row from the duplicate rows.

-Shohel

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-01-31 : 01:05:37
see http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=6256


KH

Go to Top of Page
   

- Advertisement -