Write a query to delete duplicate records in SQL SERVER
Answer Posted / prakash patel
delete from tbl_test where ID in
(select ID from tbl_test group by ID having count(ID) > 1)
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is bulkcopy in sql?
How do I view views in sql server?
What the different components in replication and what is their use?
Suppose we have a table "MyTable" containing 10 rows, what query should be executed to update the odd rows "Salary" as 9000?
What is the difference between grant and with grant while giving permissions to the user?
What do you know about normalization and de- normalization?
what is the information that can be stored inside a bit column? : Sql server database administration
Explain forward - only cursors?
How you can get a list of all the table constraints in a database?
What does Master database contains?
What is the xml datatype?
How can we remove orphan records from a table?
can a database be shrunk with users active? : Sql server administration
What command must you use to include the not null constraint after a table has already been created?
Why use “in” clause in sql server?