How to delete the duplicate records in a table using sql
server

Answer Posted / rakesh pattajoshi

delete from tbl where id not in(select max(id) from tbl group by name)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

State the different levels of exceptional safety?

657


What is Video Streaming in .net??

643


What is .net mobile input validation. : Microsoft dot net mobile

614


Explain the process of gc?

646


how to change the application name?

1594






Explain the use of virtual, sealed, override, and abstract.

660


question related to table havi colspan and row span

1863


How do I stop a thread?

623


What is the application frame host?

622


Does application frame need host?

596


Can you explain scriptmanager control?

625


Why am I getting an invalidoperationexception when I serialize an arraylist?

563


Explain the purpose of cache? How is it used? : .NET Architecture

637


Difference between type constructor and instance constructor?

645


can u give me real example of how web.config overrides the machine.config file?

1370