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 temporal table?
You want to generate a report that is formatted as a chart. Can you use the report wizard to create such a report?
Name the different type of indexes in sql?
How do I open a .db file?
How many databases Microsoft SQL server provides?
What is table valued function and scalar valued functions?
What is bcp? When does it used?
What is a livelock?
What is the difference between insensitive and scroll cursor?
What is row_number function?
Explain what are the database objects? : SQL Server Architecture
How do you use a subquery to find records that exist in one table and do not exist in another?
Can a trigger be created on a view?
Why transaction is important?
What is public role in sql server?