find out the second highest salary?

Answer Posted / annada

SELECT e.lastname,e.salary FROM employees e
WHERE 1=(SELECT count(*) FROM employess s
WHERE s.salary>e.salary


that will return 2nd highest salry .if we place insted of 1
as 2 then we can get 3 rd highest salary .

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the oracle differences between nvl and coalesce

514


What is oracle used for?

534


How to start a new transaction in oracle?

587


How do we get field detail of a table?

623


How to convert a date to char in oracle? Give one example.

583






is there a tool to trace queries, like profiler for sql server?

599


What is an oracle wallet?

510


What is the parameter mode that can be passed to a procedure?

570


Her departmandaki isçilerden empno' su ikinci sirada olan isçilerin empno, deptno, hiredate, sira_no bigilerini döndüren sorguyu yaziniz?

1565


Can we connect to ORACLE db using Windows Authentication?

722


Explain the use of rows option in exp command.

585


What is difference between cartesian join and cross join?

587


Does oracle partitioning improve performance?

550


How do you find out from the RMAN catalog if a particular archive log has been backed-up?

1656


Explain alias?

709