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

Answer Posted / avi007

SELECT employee_name,min(salary) FROM ( select distinct
salary from employee order by salary desc)
where rowno<6 group by employee_name;

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention what plvcmt and plvrb does in pl/sql?

643


How to read/write files from pl/sql?

582


How much does sqlite cost?

559


How do you define a foreign key?

539


Describe different types of general function used in sql?

532






what is 'mysqld'? : Sql dba

545


Explain 3 basic parts of a trigger.

843


what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba

552


How many types of triggers exist in pl/sql?

570


Define SQL and state the differences between SQL and other conventional programming Languages?

686


What is a sql*loader control file?

622


What is bulk compiling in pl/sql.?

611


How many types of normalization are there?

493


how would concatenate strings in mysql? : Sql dba

572


Which one is faster ienumerable or iqueryable?

487