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 happens when the SQL Azure database reaches Max Size?
What happens if time-only values are provided as date and time literals?
difference between Clustered index and non clustered index ?
What are the pre-defined functions in the sql server?
What is data file in computer?
What are the acid properties?
What are scalar functions?
Is the log file is a part of file group?
Is port 1433 secure?
What is sql server profiler trace data file?
What is a covered index?
Why use triggers?
List the different index configurations possible for a table?
What is the most common trace flags used with sql server?
What is the difference between varchar and nvarchar?