Query for second maximum salary in each in each department

Answer Posted / sravan

Select first_name, salary, rownum rank from
(select *from emp order by salary desc)

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does t sql mean?

538


Can we use delete in merge statement?

517


What is case function?

603


how to use 'mysql' to run sql statements? : Sql dba

539


What is difference between hql and native sql?

585






Why triggers are used?

557


what are the types of join and explain each? : Sql dba

534


What is the difference between a primary key and a clustered index?

526


How to read xml file in oracle pl sql?

511


What is cascade in sql?

563


what is the difference difference between procedure and packages

9231


How do you remove duplicates without using distinct in sql?

508


Why plvtab is considered as the easiest way to access the pl/sql table?

625


what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba

554


Is natural join same as inner join?

509