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 sql query limit?
Can we join same table in sql?
Show code of a cursor for loop.
What are conditional predicates?
what is index? : Sql dba
Explain what is a view?
How does one load ebcdic data? : aql loader
What are primary key and foreign key and how they work?
what is blob? : Sql dba
What is cross join example?
Write a sql query to find the names of employees that begin with ‘a’?
can sql servers linked to other servers like oracle? : Sql dba
What does the hierarchical profiler does?
difference between anonymous blocks and sub-programs.
How do you rank data in sql?