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 in the table
permanently and i want output in the above formatow should u
write query?
Answer Posted / sarthak mohanty
DELETE
from <table_name> a
where a.rowid > ANY(select b.rowid
from <table_name> b
where a.salary=b.salary);
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
what are set operators in sql? : Sql dba
Show the two pl/sql cursor exceptions.
Explain the difference in execution of triggers and stored procedures?
how to present a past time in hours, minutes and seconds? : Sql dba
how to fetch common records from two tables? : Sql dba
What is substitution variable in pl sql?
What is the difference between function and procedure in pl/sql?
What company owns postgresql?
What version is sql?
What is structural independence and why is it important?
What is multiple columns?
What does subquery mean in sql?
What is pl sql quora?
Explain what is dbms?
How do you run a query?