how to find the second highest salary from emp table?
Answer Posted / dev anand s
select salary from (
select salary, dense_rank() over(order by salary desc) rank from emp) where rank=2;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is sql and how does it work?
Can a foreign key be a duplicate?
Why trigger is used in sql?
Does sqlite need a server?
What do you know by pl/sql cursors?
Explain what is table in a database?
Why is sql*loader direct path so fast?
Can we create index on primary key?
What is the purpose of using pl/sql?
What is sql mysql pl sql oracle?
What is a primary key example?
Why we use cross join?
What are dml commands?
What is sql injection owasp?
What is sql*loader?