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

Can you have more than one key in a database?

509


How many times can we commit in a loop?

568


Is sql injection illegal?

597


How does a self join work?

520


Can instead of triggers be used to fire once for each statement on a view?

541






What is sql rowcount?

559


what are the 'mysql' command line options? : Sql dba

560


What are the uses of merge?

724


How do I add a database to sql?

584


what are the t string functions available in tsql? : Transact sql

545


What is clustered index in sql?

592


Is foreign key mandatory?

558


What is t sql in sql server?

572


What is a primary key? Explain

543


How does sql store data?

487