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 is sql analyzer?
what is a foreign key ? : Sql dba
Why should I use postgresql?
What mean sql?
What is sorting in sql?
List and explain the different types of join clauses supported in ansi-standard sql?
Can I call a procedure inside a function?
What is sqlca in db2?
What is over () in sql?
How can we debug in PL/SQL?
How do I upgrade sql?
Name some usages of database trigger?
What is int identity in sql?
what is foreign key? : Sql dba
How do you create an update query?