one of the column in my table contains the data like
SAL
----
1000
1000
2000
3000
3000
So my requirement is i want output like
SAL
---
1000
2000
3000
it mean i want to delete duplicate rows only how should u
write query?
Answer Posted / swastik
DELETE FROM Emp A
WHERE ROWID NOT IN
(
SELECT MIN(ROWID)
FROM Emp B
WHERE A.Sal = B.Sal
)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
explain commit and rollback in mysql : sql dba
What is union, minus and interact commands?
What is sql catalog?
Inline the values in PL/SQL, what does it mean.?
What is error ora-01000: maximum open cursors exceeded
Is there a 64 bit version of ssms?
What is the difference between a subquery and a join?
In pl/sql, what is bulk binding, and when/how would it help performance?
What is a dynamic query?
Can %notfound return null after a fetch?
What is cursor and why it is required?
Difference between table function and pipelined function?
What is replication id?
what is a database transaction? : Sql dba
How do I remove sql developer from windows 10?