Write a query to delete duplicate records in SQL SERVER
Answer Posted / chandran.s
Table Name: Example
Name Age
chandran 23
ranjith 24
chandran 23
To delete one of the duplicate records use following query
delete from example where age in(select age from example
group by age having count>1)
| Is This Answer Correct ? | 13 Yes | 46 No |
Post New Answer View All Answers
Explain indexed views and partitioned view with their syntax.
Difference between DELETE and TRUNCATE?
The external application that is executed in one of the tasks does not have a log file, but only a screen log. How can I save the data from the screen? : sql server management studio
How do I find the default sql server instance?
Can you pass expressions to stored procedure parameters?
What is CTE in SQL
What is intellisense?
What is the server name for sql management studio?
How do I start and stop sql server?
What are the elements of dbms?
How to reaname table name without using sp_Rename in sql server..?
What is open database communication (odbc)?
Is sql different from sql server?
What are the differences between stored procedure and view in sql server?
What do you understand by the denormalisation?