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 / yaswanth
select salary from emp where rowid NOT IN(select max(rowid) from emp GROUP BY salary);
| Is This Answer Correct ? | 14 Yes | 7 No |
Post New Answer View All Answers
Can I copy :old and :new pseudo-records in/to an oracle stored procedure?
How do I create an index in word?
What is sql injection vulnerability?
What is dense_rank?
How can we find duplicate records in a table?
How do you rank data in sql?
What does a pl/sql package consist of?
what is a composite key ? : Sql dba
What is the purpose of cursors in pl/sql?
Is sql free?
what is an index? : Sql dba
How do I remove sql plus from windows 10?
What is a recursive join sql?
How many triggers can be applied on a table?
Which is faster view or stored procedure?