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
What is left join in sql?
how to check myisam tables for errors? : Sql dba
What are the rules to be applied to nulls whilst doing comparisons?
What are the possible values that can be stored in a boolean data field?
What port does sql server use?
What are all the different normalizations?
what are the different type of normalization? : Sql dba
how is myisam table stored? : Sql dba
how many sql dml commands are supported by 'mysql'? : Sql dba
Who developed sql?
what is query cache in mysql? : Sql dba
what is a database? : Sql dba
What are different types of sql commands?
explain mysql aggregate functions. : Sql dba
Why join is faster than subquery?