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
Explain system functions or built-in functions? What are different types of system functions?
What are different types of constraints?
Can we do dml on views?
what is spatial nonclustered index
What is standby servers? Explain types of standby servers.
What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?
How can we solve concurrency problems?
What are the source of constraints?
How do I find the sql server version?
How raid can influence database performance?
Where can you add custom error messages to sql server?
Why and when do stored procedure recompile?
what is the Ticketing tool used in Wipro technologies at Bangalore...???
Explain “row_number()” in sql server with an example?
If any stored procedure is encrypted, then can we see its definition in activity monitor?