how to find the second highest salary from emp table?
Answer Posted / latha l
Select level,Max(sal) from emp
Where level=&level connect by prior sal>sal
group by level;
ENTER THE LEVEL MANUALLY
EX:Enter value for level: 2
YOU GET SECOND MAXIMUM SALARY.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How much does sqlite cost?
what is heap table? : Sql dba
How you can copy a file to file content and file to pl/sql table in advance pl/sql?
how to fetch alternate records from a table? : Sql dba
What is a constraint? Tell me about its various levels.
What is forward declaration in pl sql?
What is view explain with example?
what is a composite primary key ? : Sql dba
How do I find duplicates in two columns?
What is the current version of sql?
Does user triggers have entry for trigger with compilation errors?
how to select unique records from a table? : Sql dba
What is a crud api?
Can we join tables without foreign key?
what are myisam tables? : Sql dba