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 / amit
SQL>DELETE FROM <TABLE NAME>
WHERE ROWID NOT IN (SELECT MIN(ROWID) FROM <TABLE NAME>
GROUP BY SAL);
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
What is execute immediate?
How do I find duplicates in the same column?
How does sql developer connect to oracle database?
tell us something about heap tables. : Sql dba
How sql query is executed?
How to Declare Fixed Length String Value In PL SQL
How to get list of all tables from a database?
When a dml statement is executed, in which cursor attributes, the outcome of the statement is saved?
Why stored procedure is better than query?
What is self-join and what is the requirement of self-join?
How does cross join work?
What is substitution variable in pl sql?
Which is better trigger or stored procedure?
What is oracle sql called?
Explain architecture of sql server notification services?