how to find the second highest salary from emp table?
Answer Posted / raghu munukutla
SQL> select max(sal) from emp where rownum<=(select
count(sal)-1 from emp)
order by sal desc;
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How does postgresql compare to oracle/db2/ms sql server/informix?
Does access use sql?
what is table? : Sql dba
What are %type and %rowtype for?
what are sequences
How many clustered indexes can you have?
Show how functions and procedures are called in a pl/sql block.
How do I truncate a sql log file?
How do you bind variables in pl sql?
What is denormalization in a database?
How can a function retun more than one value in oracle with proper example?
Can we create table inside stored procedure?
Can we call stored procedure in function?
What is rank function in sql?
What are the different sql languages?