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
how to convert numeric values to character strings? : Sql dba
How do I remove sql developer from windows 10?
What is procedure explain with program?
What is clustered index in sql?
What is exception? What are the types of exceptions?
How do I save a stored procedure?
How do I copy a table in sql?
how to drop an existing table in mysql? : Sql dba
How do I partition in sql?
How do I order columns in sql?
How are functions and procedures called in PL/SQL?
how can we destroy the cookie? : Sql dba
Does db2 use sql?
What is the difference between having and a where in sql?
When is the explicit cursor used ?