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 a temp table?
write an sql query to get third maximum salary of an employee from a table named employee_table. : Sql dba
Write a query to display the current date in sql?
What is the usage of sql functions?
What is scope of pl sql developer in future?
How do I view a table in sql?
How to display the current date in sql?
Why do we need view in sql?
what are the types of subquery? : Sql dba
how to convert dates to character strings? : Sql dba
What is orm in sql?
What is the difference between instead of trigger and after trigger?
What is exception? What are the types of exceptions?
What does select * from mean in sql?
Who is the owner of mysql database?