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
How many types of index are there?
What are the rules to be applied to nulls whilst doing comparisons?
Can sql developer connect to db2?
Which command is used to call a stored procedure?
Write a sql select query that only returns each name only once from a table?
What is oracle pl sql developer?
What is oracle sql called?
When can we use the where clause and the having clause?
Can a select statement fire a trigger?
How to change sql*plus system settings?
Is it possible to create startup or shutdown trigger for on-schema?
Which is faster joins or subqueries?
explain normalization concept? : Sql dba
Explain cursor types?
Explain the update statement in sql