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
How to generate a salary slip like jan 1000 1000 feb 1000 2000 ... dec 1000 12000
How to run sql functions in pl/sql?
Explain the insert into statements in sql?
What is the difference between a subquery and a join?
what are the features and advantages of object-oriented programming? : Sql dba
What is oracle sql developer?
what is 'mysqlshow'? : Sql dba
how to convert character strings to numeric values? : Sql dba
What is $$ in sql?
what is the difference between union and union all? : Sql dba
what are numeric data types? : Sql dba
What is sql used for?
Does inner join return duplicate rows?
What are different categories of sql commands?
How to add, remove, modify users using sql?