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

Explain 'managed' mean in the .NET context

691


How to improve the cache performance? : .NET Architecture

554


Can I create my own permission set?

530


What is textbox control of .net mobile? : Microsoft dot net mobile

615


Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form.

520






Explain is development of a mobile web application with asp.net is very easy? : Microsoft dot net mobile

515


What is a virtual memory? : Dot net architecture

533


Explain about httpruntime.cach.get(); method?

569


Explain difference between machine config vs. Web config : Dot net architecture

480


Explain write back and write through caches? : .NET Architecture

517


Can you explain control extenders?

521


What is Object Caching in Visual Studio 2010?

597


What is the mesi? : Dot net architecture

546


Explain difference between inprocess vs out process session state? : .NET Architecture

538


what is tracing? Where it used?

609