how to get second highest salary in SQL(as/4000
Answer Posted / mohamed shahid
select * from (select sal,rownum rn from(select sal from emp order by sal desc)) where rn=2;
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?
How can you get sql*loader to commit only at the end of the load file? : aql loader
How do I count rows in sql?
What are few of the schema objects that are created using PL/SQL?
what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba
What are triggers and its uses?
What is the difference between instead of trigger and after trigger?
what are the properties and different types of sub-queries? : Sql dba
How do we use distinct statement? What is its use?
What is exception? What are the types of exceptions?
What is sql and db2?
What is a relationship and what are they?
Can we create table inside stored procedure?
What is update query?
When a dml statement is executed, in which cursor attributes, the outcome of the statement is saved?