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
Can a stored procedure call itself or a recursive stored procedure? How many levels of sp nesting is possible?
How to find the source of a table in sql server?
Differentiate between SQL and ORACLE joins and write their syntax.
What is self contained multi valued query?
Which are the important points to note when multilanguage data is stored in a table?
what are the new features introduced in sql server 2000? : Sql server database administration
Name and describe few console utilities for ssrs?
What is the meaning of lock escalation and why/how to stop this? : sql server database administration
What do you understand by SQL*Net?
Define msdb database?
what is bit datatype? : Sql server database administration
Suppose you want to implement the one-to-many relationships while designing tables. How would you do it?
What is the difference between truncate and delete commands?
How to use the inserted and deleted pseudo tables?
which table keeps the locking information? : Sql server administration