how to find the second highest salary from emp table?
Answer Posted / bharat g
select * from (select ename,sal,dense_rank() over (order by sal desc) ranking from emp) where ranking=2;
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is exit statement?
How to sort the rows in sql.
What are %type and %rowtype for?
Explain how to use transactions efficiently : transact sql
What is the order of sql select?
How to select random rows from a table?
what is a primary key? : Sql dba
Is join same as left join?
What is the location of pre_defined_functions.
How do I delete a trigger?
Why stored procedure is faster than query?
what is a unique key ? : Sql dba
Why is there a need for sqlcode and sqlerrm variables?
What is schema in sql example?
Explain table and field in sql?