Answer Posted / g.sivanagaraju
SELECT DISTINCT(A.SAL)
FROM EMP A
WHERE &N=(SELECT COUNT(DISTINCT(B.SAL))
FROM EMP B
WHERE A.SAL<=B.SAL);
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Can we use pl sql in mysql?
how to delete duplicate rows from a join tables(I have three tables on that join) how do you know which join is need to be used? The select statement I have is: SELECT gc_skill_type.skill_type, gc_area_tec.area, gc_technology.technology, gc_technology.id_technology, gc_area_tec.id_area_tec FROM gc_skill_type, gc_area_tec, gc_technology WHERE gc_area_tec.id_skill_type (+) = gc_skill_type.id_skill_type AND gc_technology.id_area_tec (+) = gc_area_tec.id_area_tec order by gc_skill_type.skill_type asc, gc_area_tec.area asc, gc_technology.technology asc
What is sql*loader?
What are different clauses used in sql?
What is mutating sql table?
What is synonyms?
Why is there a need for sqlcode and sqlerrm variables?
How we can update the view?
What is nosql vs sql?
How do you use a while loop in pl sql?
What is rtm stands for?
What is union?
how many tables will create when we create table, what are they? : Sql dba
What found sql?
Which is faster truncate or drop?