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 a dynamic query?
can a stored procedure call itself or recursive stored procedure? : Sql dba
How to change sql*plus system settings?
Is it possible to pass parameters to triggers?
What are pl sql data types?
How we can update the view?
what are the advantages and disadvantages of views in a database? : Sql dba
What is equi join in sql?
Name three sql operations that perform a sort.
Define overloaded procedure?
How to avoid using cursors?
Which table is left in left join?
What is thread join () in threading?
What are different types of tables in sql?
What is user in sql?