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 (3) > (SELECT COUNT(DISTINCT(E2.salary))
FROM employees E2
WHERE E1.salary > E2.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 is the purpose of primary key?

532


Why we use join in sql?

531


what is a join? : Sql dba

563


What is the requirement of self-join?

546


How do I write a sql query in pgadmin 4?

558






Can we use having without group by in sql?

553


What is a .db file?

543


If i can use sys.check_constraints to display my constraints from my database using sql server 2005, how can i display then if i am using sql server 2000????

3550


What are the types of subqueries?

573


What are % type and % rowtype?

576


How do I view output in sql developer?

578


What is a Mapplet?

645


What is a temporal data type?

597


what is the difference between where clause and having clause? : Sql dba

539


What is the command used to fetch the first 5 characters of a string?

710