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
What is dynamic sql in pl sql?
What are aggregate functions in sql?
what is the difference between ereg_replace() and eregi_replace()? : Sql dba
What are the most important ddl statements in sql?
What is record type in pl sql?
what are the different tables present in mysql? : Sql dba
Can cursors be part of a trigger body?
Why we use sql profiler?
what are sequences
Which constraints we can use while creating database in sql?
If i can use sys.check_constraints to display my constraints from my database using sql server 2005, how can i display then if i am using sql server 2000????
Can we use join in subquery?
What are actual parameters and formal parameters?
Can you call pl/sql package functions from within a fast formula?
What is serial sql?