How to get employee name from employee table which is the
fiveth highest salary of the table

Answer Posted / ajeet

SELECT first_name, salary FROM employees E1
WHERE (5) = (SELECT COUNT(DISTINCT(E2.salary))
FROM employees E2
WHERE E1.salary < E2.salary)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

The in operator may be used if you know the exact value you want to return for at least one of the columns.

726


How do I make my sql query run faster?

662


what are the limitations of mysql in comparison of oracle? Mysql vs. Oracle. : Sql dba

714


How to read/write files from pl/sql?

772


What is the difference between syntax error and runtime error?

811






explain primary keys and auto increment fields in mysql : sql dba

709


What is the usage of nvl function?

770


How can we debug in PL/SQL?

853


how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba

729


What does the hierarchical profiler does?

755


what are the join types in tsql? : Transact sql

755


What is substitution variable?

788


What is sqlca in powerbuilder?

746


Explain what is a view?

795


Explain what is a database?

811