How To delete duplicate record from a particular table?
Answer Posted / deepa
For Example
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 ? | 2 Yes | 5 No |
Post New Answer View All Answers
How to round a numeric value to a specific precision?
Does sql server use t sql?
Explain the usage of floor function in sql server.
Give a example to search fr a string in all stored procedure in sql server.
what are the disadvantages of cursors? : Sql server database administration
If we delete pack Spec what will be the status of pack Body ?
Where the sql logs gets stored? : sql server database administration
How can I get data from a database on another server?
What is the difference between substr and charindex in the sql server?
What is table join?
What is the difference between a fill factor of 100 and 0?
What are pessimistic lock and optimistic lock?
How to insert multiple rows with a subquery?
in the physical file layout, where should the transaction log be stored in relation to the data file?
What is “asynchronous” communication in sql server service broker?