how to check the 3rd max salary from an employee table?

Answer Posted / dulal

Without Using MAX or MIN keyword


select TOP 1 EmpName, RevisedMinutes
from tblEncounter
where RevisedMinutes IN(select distinct Top 3
RevisedMinutes from tblEncounter order by RevisedMinutes
desc)
order by RevisedMinutes asc

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sp_helptext?

684


what is dbms? : Sql dba

630


What is the use of partition by in sql?

614


Where do we use pl sql?

641


Write a query to find the names of users that begin with "um" in sql?

597






what are the differences between binary and varbinary? : Sql dba

626


What is the purpose of my sql?

599


How to use boolean type in select statement?

661


How to assign sql query results to pl sql variables?

582


Is grant a ddl statement?

535


What is nvarchar in sql?

607


How do you select unique values in sql?

615


Is sql database free?

624


what is the difference between a local and a global temporary table? : Sql dba

632


How to order siblings in oracle hierarchy queries?

692