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 / guest
SQL> DELETE FROM <TABLE_NAME>
WHERE (ROWID,SAL) NOT IN
(SELECT MIN(ROWID),SAL FROM <TABLE_NAME>
GROUP BY SAL);
| Is This Answer Correct ? | 13 Yes | 5 No |
Post New Answer View All Answers
Differentiate between sga and pga.
What are joins in sql?
What is recursive join in sql?
what is a tablespace? : Sql dba
What is the difference between function, procedure and package in pl/sql?
what is index? : Sql dba
What is coalesce sql?
What is primary key and foreign key with example?
What is difference between sql and excel?
Can we call stored procedure in function?
How do I partition a table in sql?
What is thread join () in threading?
What are the constraints available in sql?
What are the two different parts of the pl/sql packages?
How many types of indexes are there in sql?