Delete duplicate records from the table?(Table must have
unique id)
Answer Posted / naren
delete id from table where id in(select id from table having count(id)>1)
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
How do you clear a log file?
How to get a list of table columns using the "sp_columns" stored procedure in ms sql server?
what is the system function to get the current user's user id? : Sql server database administration
What are the different types of columns types constraints in the sql server?
How do you maintain database integrity where deletions from one table will automatically cause deletions in another table?
What is the data type of time?
Write a sql query to display the current date?
What is the maximum size of sql server database?
How to use column default values in insert statements in ms sql server?
What do you do in data exploration
What is difference between primary key and foreign key?
Which is faster statement or preparedstatement?
What do you mean by subquery?
What is the purpose of the model database?
What are the difference between clustered and a non-clustered index?