how to find the second highest salary from emp table?
Answer Posted / vikas
select * from(select e.*,row_number() over (order by
e.salary desc)rn from Employee e)where rn between 1 and 2
order by rn
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the usage of the distinct keyword?
What is the difference between unique and primary key constraints?
What are sql constraints?
Could you please provide oca (oracle 10g) dumps for my certification ?
What is the main difference between sql and pl/sql?
What is delimiter sql?
What is structural independence and why is it important?
How can one get sql*loader to commit only at the end of the load file? : aql loader
What are the two types of cursors in pl sql?
What is raw datatype in sql?
how to include character strings in sql statements? : Sql dba
What are the different dml commands in sql?
What is interval partition?
what are the types of subquery? : Sql dba
If a cursor is open, how can we find in a pl/sql block?