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
What is a unique key constraint?
Explain the properties of a relational table?
How to provide default values to stored procedure parameters?
How to use clusters?
How can you list all the columns in a database?
What is ssl in sql server?
Can you always create a cache of a report?
How to convert a numeric expression from one data type to another?
What is primary key index?
How is a full-text index updated?
Which sql server table is used to hold the stored procedure scripts?
What does indexation mean?
What are subqueries in sql server? Explain its properties.
What encryption security is available in sql azure?
Can you explain the disadvantages/limitation of the cursor?