Is it possible to delete duplicate rows in a table without
using a temporary table ?
Answer Posted / kumar
sno names
1 arun
2 arun
3 arun
6 arun
7 bala
11 bala
12 guna
9 guna
14 guna
10 raj
13 raj
Table Name T1
Fields Names Sno,Names
Delete From t1 where sno not in
(select min(sno) from t1 group by names)
Is This Answer Correct ? | 17 Yes | 6 No |
Post New Answer View All Answers
What is sub-query in sql server?
sql database suspect We have a sql database that is showing as suspect. How can we recover?
What is partition, how will you implement it? : sql server analysis services, ssas
Is truncate a dml command?
What is an index. What are the types?
How to change the password of a login name in ms sql server?
I have triggers,views,functions,stored Procedures for a table. When I am dropping that table which objects are deleted?
Explain raiserror in sql server?
How to delete existing rows in a table?
Explain indexed views and partitioned view with their syntax.
How to run sql server 2005 books online on your local system?
What is a mixed extent?
How to use subqueries in the from clause in ms sql server?
How to check parameter value in stored procedure sql server?
Which are the new data types introduced in sql server 2008?