how to get second highest sal of emp table

Answer Posted / rakhi

SELECT *
FROM (
SELECT employee_id, last_name, salary,
RANK() OVER (ORDER BY salary DESC) EMPRANK
FROM employees)
WHERE emprank = 2;

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dual table oracle?

527


How can I convert single byte kana characters into multi byte kana characters and vice-versa.

1934


Explain about achiever in sql?

584


How to list all tables in your schema?

610


Can group functions be used in the order by clause in oracle?

580






How do I use os authentication with weblogic jdriver for oracle and connection pools?

577


hello friends Im doing my final year engineering in B.Tech.. one of uncle said he can provide job in his company if im good in database management. but i have only basic knowledge about database, so like to join database management course in good intuition. so friends kindly help me to get good intuition because its my future.

1759


How to change system global area (sga) in oracle?

572


What is the difference between hot backup and cold backup in oracle?

524


What is columnar storage what is the advantage?

546


How would you go about verifying the network name that the local_listener is currently using?

1609


what are bitmap indexes? How does they work?

1719


How do we represent comments in oracle?

631


How to apply filtering criteria at group level in oracle?

587


Explain the characteristics of oracle dba?

638