Query for second maximum salary in each in each department
Answer Posted / yaswanth
select salary from(select salary,rownum rk from(select salary from employees order by salary desc)) ehere rk=2;
Is This Answer Correct ? | 2 Yes | 13 No |
Post New Answer View All Answers
How does sql store data?
How to display Row Number with Records in Oracle SQL Plus?
What is left join example?
What is data control language?
How to assign sql query results to pl sql variables?
How do I view a sql trace file?
Can a varchar be a primary key?
What is an exception in PL/SQL? What are the two types of exceptions?
Is sql easier than java?
Why do we use joins in sql?
How run sql*plus commands that are stored in a local file?
Define overloaded procedure?
What is data profiling in sql?
How many sql statements are used? Define them.
What is latest version of sql?