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

Answer Posted / m haribaskar

Select Salary From Employee a Where 5=(
Select Count(Distinct Salary) From Employee b
Where a.Salary <= b.Salary )

Is This Answer Correct ?    25 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is sql in mysql? : Sql dba

571


Can we create table in function?

571


What found sql?

526


Explain the methods used to protect source code of pl/sql.

544


What is sql procedures and functions?

531






What are predefined functions in sql?

535


What is integrity in sql?

562


Where do we use pl sql?

555


Explain what is a view?

600


Can a table contain multiple foreign key’s?

575


What are local and global variables and their differences?

587


What is the use of triggers?

545


How can I tell if sql is running?

586


Is sql scripting language?

526


Explain how exception handling is done in advance pl/sql?

556