Query for second maximum salary in each in each department
Answer Posted / sampath pallerla
select distinct(a.sal) from emp a where 2=(select count(distinct(b.sal)) from emp b where a.sal<=b.sal);
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
What is pl sql package?
How can you fetch first 5 characters of the string?
Why is theta join required?
What is the difference between left outer join and left join?
What do you mean by table in sql?
What is pl/sql language case sensitive?
Explain commit, rollback and savepoint.
What are all types of user defined functions?
What is a data definition language?
What are the types of variable use in pl sql?
what is sql? : Sql dba
Can we enter data in a table in design view?
What are different types of sql?
What are the disadvantages of not performing database normalization?
What are the advantages of sql? Explain