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
 SQL Server Development (2000)
 delete dupes

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-09-27 : 17:36:42
writes "how to delete repeated records in a single(same) table without using joins or distinct"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2006-09-27 : 17:38:09
Why can't you use joins or distinct? Is it a homework question?

Did you read the SQLTeam FAQ?
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-09-27 : 20:58:31
>> Is it a homework question?
It also seems interview question

Other related topic
http://sqlteam.com/forums/topic.asp?TOPIC_ID=6256

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2006-09-27 : 21:07:00
This should get rid of ALL the dupes.
delete from MyTable


CODO ERGO SUM
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-09-27 : 21:12:40
quote:
Originally posted by Michael Valentine Jones

This should get rid of ALL the dupes.
delete from MyTable


CODO ERGO SUM




Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -