Write a query to delete duplicate records in SQL SERVER
Answer Posted / chandran
There is a table like this: tablename: example
Name Age
chandran 23
ranjith 24
chandran 23
In this table the name:chandran and age:23 are the
duplicate records .so we need to delete this using this
sql statements
delete from example group by name,age having count>1
| Is This Answer Correct ? | 37 Yes | 107 No |
Post New Answer View All Answers
What are the three different part of rdl file explain them?
Explain what stored procedure sp_replcounters is used for? : sql server replication
How to find which stored procedure is currently running in sql server?
What are ddl triggers and types of ddl trigger?
What is a group function explain with an example?
What is the difference between sdf and mdf?
Data table as parameter in sql server?
When would you use it?
What do you understand by triggers and mention the different types of it?
Write a sql query to sort on different column name according to the parameters passed in the function?
What is create command?
What is the maximum size of a dimension? : sql server analysis services, ssas
Determine when an index is appropriate?
What the different types of Replication and why are they used?
What are the types of lock supported by ?