Delete duplicate records from the table?(Table must have
unique id)
Answer Posted / dinesh kumar
delete from emp where id Not in(select max(id) id from emp
group by name having count(id)>1)
| Is This Answer Correct ? | 22 Yes | 9 No |
Post New Answer View All Answers
What is bcp? When does it used?
What does it mean to normalize a database and why would you do it?
What are a database and a data warehouse?
How does using a separate hard drive for several database objects improves performance right away?
Define right outer join?
why would you call update statistics? : Sql server database administration
What is ms sql server reporting services?
What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting are possible?
Can a table be created inside a trigger?
can a database be shrunk with users active? : Sql server administration
What is the purpose of self join?
How to create an identity column?
What are the types of lock supported by ?
What is indexed view?
How to choose all records from the table?