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 / amit
SQL>DELETE FROM <TABLE NAME>
WHERE ROWID NOT IN (SELECT MIN(ROWID) FROM <TABLE NAME>
GROUP BY SAL);
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
what are the features and advantages of object-oriented programming? : Sql dba
How do I use google cloud in sql?
What are the possible values that can be stored in a boolean data field?
what is a relationship and what are they? : Sql dba
Can we alter stored procedure?
What is difference between my sql and sql?
Does truncate release storage space?
what is the command line end user interface - mysql? : Sql dba
What does subquery mean in sql?
How to Declare Fixed Length String Value In PL SQL
explain commit and rollback in mysql : sql dba
How to make a copy values from one column to another in sql?
What is the difference between partition and index?
What is the difference between left and left outer join?
How to connect a sql*plus session to an oracle server?