Find out the 3rd highest salary?
Answer Posted / priyanga.g
1) Select MAX(salary) from Programmer where salary not
in(select top 2 salary from Programmer order by salary desc)
2) Select max(salary) from programmer where salary<
(select MAX(salary) from Programmer where salary<(select
MAX(salary) from Programmer))
3) Select MAX(salary) from Programmer e where 2=(select
COUNT(*) from programmer b where b.salary>e.salary )
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what is the difference between blob and text? : Sql dba
What does closing a cursor do?
what are rollup and cube in t-sql? : Transact sql
define join and explain different type of joins? : Sql dba
What does t sql mean?
What is coalesce sql?
Does pl sql work in mysql?
What are the different types of dbmss?
How many types of literals are available in pl sql?
What are the set operators in sql?
how to use 'mysql' to run sql statements? : Sql dba
What is trigger in sql?
What does the sign mean in sql?
Can you have a foreign key without a primary key?
What is the purpose of the partition table?