Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Old Forums
 CLOSED - General SQL Server
 single delete sql statement
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

sanjnep
Posting Yak Master

USA
191 Posts

Posted - 08/02/2005 :  15:47:22  Show Profile  Visit sanjnep's Homepage
Hi All,
Again interview question. Is it possible to remove duplicate values from a single column table using single delete statement?
For example
data
---------
1
1
2
2
2
3
4
4
4
4

I need to delete the data from the table and following data should remain on the table.
data
--------
1
2
3
4

Thanks
Have a nice time


Sanjeev shrestha

tkizer
Almighty SQL Goddess

USA
38200 Posts

Posted - 08/02/2005 :  15:52:51  Show Profile  Visit tkizer's Homepage
Always check the SQLTeam.com articles and search the forums.

http://www.sqlteam.com/item.asp?ItemID=3331

Tara
Go to Top of Page

madhivanan
Premature Yak Congratulator

India
22864 Posts

Posted - 08/03/2005 :  00:58:17  Show Profile  Send madhivanan a Yahoo! Message
One more link
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q139444

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000