how to find the second highest salary from emp table?
Answer Posted / mohamed hussain
select salary from
(select salary,Dense_RANK() over (Order by salary desc) as
Level from salary) TMP
where Level=@Level
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain isolation levels. : Transact sql
What are tuples in sql?
Can a commit statement be executed as part of a trigger?
Why do we need databases?
What is substitution variable?
What are two statement types in sql?
What is the syntax to add a record to a table?
Are sql database names case sensitive?
Is clustered index a primary key?
What is error ora-01000: maximum open cursors exceeded
Explain exception handling in pl/sql?
What is pivot in sql?
What is substitution variable in pl sql?
What are % type and % rowtype?
how to calculate the difference between two dates? : Sql dba