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

Is trigger a stored procedure?

506


What is package in pl sql with an examples?

549


Can we use pl sql in mysql?

519


Is sql a backend language?

622


What is sql injection vulnerability?

494






How many types of normalization are there?

489


What is count * in sql?

553


what is the difference between a web-garden and a web-farm? : Sql dba

556


what are the advantages of using stored procedures? : Sql dba

617


Does truncate require commit?

544


how would you enter characters as hex numbers? : Sql dba

516


Which are the different types of indexes in sql?

563


What is the difference between clustered and non-clustered index in sql?

523


What are different types of indexes?

508


How do I view a sql database?

558