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

How to run pl sql program in mysql?

681


Does view contain data?

788


Is primary key a clustered index?

710


Can we change the table name in sql?

704


What do you mean by query optimization?

728






Which join is default?

711


What are aggregate and scalar functions?

723


What does plv msg allows you to do?

860


What are pl/sql cursor exceptions?

755


What is self-join and what is the requirement of self-join?

841


what is user defined functions? : Sql dba

744


what is a join? : Sql dba

769


How do I view a view in sql?

697


How can we store rows in PL/SQL using array?

882


What is a database? Explain

784