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 is the difference between execution of triggers and stored procedures?
What is difference between nchar and nvarchar?
What is a sql schema used for?
How do I view a table in sql?
Explain the components of sql?
How many types of triggers are there in pl sql?
Which language is used in sql?
what is a record in a database ? : Sql dba
What are the types of functions in sql?
How do you truncate?
What is an exception in pl/sql?
What is interval partition?
What is dml and ddl?
Mention what pl/sql package consists of?
What is a full join?