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 is on delete restrict?

541


How many types of relationship are there?

547


What is the difference between numeric and autonumber?

500


how to return query output in html format? : Sql dba

651


Why do you partition data?

536






What is the sql query to display the current date?

551


Does truncate require commit?

545


What are database links used for?

595


What are triggers in sql?

581


Does inner join remove duplicates?

522


How to run sql functions in pl/sql?

538


What do we need to check in database testing?

558


what is subquery? : Sql dba

569


What is a sql trace file?

549


How do you clear the screen in sql?

601