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 is unpivot?
How to create database with physical files specified in ms sql server?
What is self contained scalar sub query?
Why I am getting this error when renaming a database in ms sql server?
What is always encrypted?
What is "scheduled jobs" or "scheduled tasks"?
Why would you use sql agent?
What are the advantages of having an index on the sql server?
What is replication with database mirroring? : sql server database administration
What are the types of joins in sql?
How to provide values to stored procedure parameters in ms sql server?
you want to be sure that queries in a database always execute at the maximum possible speed. To achieve this goal you have created various indexes on tables which other statement will keep the database in good condition? : Sql server administration
Define Unique Key?
What is ddl and dml commands?
What is the order by used for?