how to find the second highest salary from emp table?
Answer Posted / praveen
SELECT MAX(Salary) as 'Salary' from EmployeeDetails
where Salary NOT IN
(
SELECT TOP 1 (SALARY) from EmployeeDetails ORDER BY Salary Desc
)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to place comments in pl/sql?
Can you skip header records while loading? : aql loader
How to Declare Fixed Length String Value In PL SQL
What is trigger point?
What is bind reference and how can it be created?
Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?
what is a trigger in mysql? Define different types of trigger. : Sql dba
What are secondary keys?
How to create an array in pl/sql?
How do I create a sql database?
What are the triggers associated with image items?
how can we optimize or increase the speed of a mysql select query? : Sql dba
Which one is better subquery or joins?
Can unique keys be null?
Are views faster than queries?