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
Can we call a function containing dml statements in a select query?
What is the use of pl/sql table?
How are sql commands classified?
how many ways to get the current time? : Sql dba
How many row comparison operators are used while working with a subquery?
What is dml statement?
Does a join table need a primary key?
What is execution plan in sql?
What are different types of sql?
What is t-sql? : Transact sql
which tcp/ip port does sql server run on? : Sql dba
What is the use of count (*) in sql?
What is the difference between a primary key and a clustered index?
Can we insert data into materialized view?
What do you understand by pl/sql packages?