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

Answer Posted / b.v.siva kumar

Use this for SQL Server:

select top 1 salary from emp where salary in (select
distinct top 3 salary from emp order by salary desc) order
by salary

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is view explain with example?

517


How do I start sql from command line?

529


What is function and procedure?

563


Can we use insert statement in function?

514


What are some emotional triggers?

568






what are the different tables present in mysql? : Sql dba

502


What is difference between stored procedure and trigger?

529


what is sub-query? : Transact sql

596


What are stored procedures in mysql?

556


What is trigger explain it?

547


What is the max nvarchar size?

513


What are the types of variables use in pl sql?

498


What is the use of & in pl sql?

532


how to load data files into tables with 'mysqlimport'? : Sql dba

518


What are the subsets of sql?

546