Write a query to find second highest salary of an employee.
Answer Posted / gyana ranjan behera
select ename,sal.rn from(select ename,sal,rownum rn from(select ename,sal from emp order by sal desc))where rn=2;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What does cursor do in sql?
What is synonyms?
Explain correlated query work?
Can cursors be part of a trigger body?
Is crud a cuss word?
Which is better join or subquery?
What is a crud api?
Which is better trigger or stored procedure?
In a distributed database system, can we execute two queries simultaneously?
What is crud sql?
What is crud diagram?
what is meant by nl2br()? : Sql dba
What is the difference between rollback and rollback to statements?
what is a constraint? Tell me about its various levels. : Sql dba
Explain the update statement in sql