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
What is dml and ddl?
How to change the order of columns in Oracle SQL Plus ?
What are the parameter modes supported by pl/sql?
What is having clause in sql?
What are the different types of triggers?
Mention what pl/sql package consists of?
What is difference sql and mysql?
Is sql free?
What is the purpose of a secondary key?
Write a program that shows the usage of while loop to calculate the average of user entered numbers and entry of more numbers are stopped by entering number 0?
Why do we use sqlite?
How do you know if a relationship is 2nf?
What are all the different normalization?
What does the hierarchical profiler does?
How can we make an if statement within a select statement?