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
Define Wed Edition in SQL Azure?
what are user defined datatypes? : Sql server database administration
How to generate create table script on an existing table in ms sql server?
How to use “drop” keyword in sql server and give an example?
Define the one-to-one relationship while designing tables.
What is mean by candidate key?
What do you know about system database? : SQL Server Architecture
What is cursor in ms sql server?
What is database black box testing?
How to insert stored procedure result into temporary table?
Can you change the data type of a column in a table after the table has been created? If so, which command would you use?
How to receive returning result from a query?
Why do we use trigger?
can an automatic recovery be initiated by a user? : Sql server administration
You schedule a job to run every minute what will happen if the first job runs more than 1 min? Will the second instance of the job start?