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

What are the different sql languages?

542


If a cursor is open, how can we find in a pl/sql block?

676


What is sp_helptext?

592


What is a sql schema used for?

546


Mention what are the benefits of pl/sql packages?

538






What is aggregate function in sql?

539


What is %s in sql?

568


what are date and time data types in mysql? : Sql dba

504


differentiate between float and double. : Sql dba

563


Explain ttitle and btitle.

674


How do I count duplicates in sql?

551


What is gpt format?

509


What is your daily office routine?

1812


Will truncate release space?

519


How many types of cursors supported in pl/sql?

596