how to calcuate the second highest salary of he employee
Answer Posted / lalit
select name, sal from (select name,sal from emp where sal<(select max(sal) from emp) order by sal desc)where rownum=1;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we use two order by clause in query?
Does sql*plus have a pl/sql engine?
How do I save a stored procedure?
explain the difference between delete , truncate and drop commands? : Sql dba
What is a call statement? Explain with an example.
column A column b | output 10 7 | 10 5 8 | 8 7 -9 | 7 3 5 | 5 0 6 | 6 Write a sql query to print such output.
What is cartesian join in sql?
What is pl sql architecture?
Which one is better sql or oracle?
What is pl sql collection?
How to select the Nth maximum salary from Table Emp in Oracle SQL Plus ?
How do you clear the screen in sql?
Mention what does the hierarchical profiler does?
what is 'mysqlimport'? : Sql dba
What is use of term?