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 / bibhudatta panda
DELETE FROM TABLENAME
WHERE ROWID NOT IN(
SELECT MAX(ROWID)
FROM TABLENAME
GROUP BY Sal
)
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What does an inner join do?
What is the difference between left join and right join?
what is not null constraint? : Sql dba
How to convert comma separated string to array in pl/sql?
Is delete faster than truncate?
When is a declare statement required?
How many joins in sql?
How does sql store data?
What is a string data type in sql?
What is difference between pl and sql?
What is the use of partition by in sql?
What is character functions?
How to return multiple rows from the stored procedure?
Is pl sql useful?
What is rank dense_rank and partition in sql?