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
Mention the differences between having and where clause.
define and explain the differences between clustered and non-clustered indexes.
your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files? : Sql server administration
How do you identify a foreign key?
What are the types of dml?
Tell me time data type, datetime2, datetimeoffset data type in sql server 2008?
What are the advantages dts has over bcp?
What is 2nf normalization?
Explain different types of locks in sql server.
How to list all login names on the ms sql server?
Which sql server table is used to hold the stored procedure script?
What are number line correlation administrators will use while working with a subquery?
Write down the syntax and an example for create, rename and delete index?
How do I find the query plan in sql server?
New concepts of sql server 2005 use in your project.