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
Do you know what is sql service broker?
What are the different types of stored procedures?
can you instantiate a com object by using t-sql? : Sql server database administration
What is the maximum number of index per table?
How raid can influence database performance?
Equi join and non equi join is possible with sql server?
What do you understand by user-defined function in the sql server and explain the steps to create and execute a user-defined function in the sql server?
How to optimize stored procedure optimization?
Describe triggers features and limitations?
What is difference between aggregate and analytic function?
What is the rdl file?
How to create an inline table-valued function?
How many ways to create table-valued functions?
What is logon trigger?
what is the difference between a primary key and a unique key? : Sql server database administration