write a query for the fifth highest salary?

Answer Posted / nitin bisht

SELECT empSalary FROM empTable e1 WHERE (5 = (SELECT
COUNT(DISTINCT (e2.empSalary))
FROM empTable e2 WHERE e2.empSalary >= e1.empSalary))

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to do Data integrity testing? Who does this testing (Developer or tester)?

1606


how to send multiple records which matches all the condition in the lookup transformation ? (if lookup matches the codition for duplicate values)

1583


How to implement database security?

535


Display the employees whose salary is less than average salary.

631


Write a query to retrieve for many to many relationships?

565






What does currency type mean in database?

718


Which is the best graph database?

533


5. Explain about relational algebra.

1727


What is the role of tester in discovery(in Checklist)?

1455


What is sharded database?

507


Should I store images in database?

574


Is data lake a database?

561


What is the advantage of varchar2 over char?

790


Data structure used to implements a menu:

624


can i use the commands "modify" and Change in DB2 to alter my column datatype and its name in a table?

1666