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
How to know the last executed procedure?
what is error ora-03113: end-of-file on communication channel?
What will you get by the cursor attribute sql%notfound?
Can we rollback after truncate?
What is the use of stored procedures?
What is scalar and vector?
How to select all records from the table?
what is a database? : Sql dba
How many sectors are in a partition?
What is difference between cursor and trigger?
What are the types of functions in sql?
What is the source code of a program?
Can we join same table in sql?
What is the maximum number of rows in sql table?
what are the advantages and disadvantages of views in a database? : Sql dba