how to find the second highest salary from emp table?
Answer Posted / dakshin
select * from (select a.*,dense_rank() over (order by sal) rnk from emp a order by sal) where rnk =2
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why select is used in sql?
How can a function retun more than one value in oracle with proper example?
how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba
How do you drop a trigger?
Why do we use sql constraints?
Can we alter stored procedure?
explain normalization concept? : Sql dba
How do I run sql?
which operator is used in query for pattern matching? : Sql dba
What is cross join sql?
Is drop table faster than truncate?
What is difference between nchar and nvarchar?
What is the use of <> sql?
Can a foreign key be a duplicate?
What is the difference between a procedure and a function?