how to check the 3rd max salary from an employee table?
Answer Posted / somanath
select sal from emp a where 3=(select
count(distinct(sal)) from emp b
where a.sal<=b.sal)
| Is This Answer Correct ? | 34 Yes | 7 No |
Post New Answer View All Answers
What is scope and visibility in PL/SQL?
Why is partition used in sql?
What is union?
How do you determine the current isolation level? : Transact sql
Can we perform dml in function?
What is recursive join in sql?
Which tcp/ip port does sql server run on? How can it be changed? : Sql dba
What is rownum in sql?
How do I edit a stored procedure?
How many triggers can be applied to a table?
What is relationship? How many types of relationship are there?
Why primary key is required?
What is rank function in sql?
how can we transpose a table using sql (changing rows to column or vice-versa) ? : Sql dba
What is cursor in pl sql?