1.how to extract the second highest salary from emp table
having sal as a column which contains the salary of all
employee of an organisation.
Answer Posted / neha k
select sal
from (SELECT sal, rownum row_num
FROM emp
order by sal desc)
where row_num = 2;
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What privilege is needed for a user to create indexes in oracle?
Explain the use of compress option in exp command.
How do you find current date and time in oracle?
Which dictionary tables and/or views would you look at to diagnose a locking issue?
Oracle
Please explain drop constraint oracle?
How to insert multiple rows with one insert statement in oracle?
What is the difference between pre-select and pre-query?
What are transaction isolation levels supported by oracle?
What is the cache hit ratio, what impact does it have on performance of an Oracle database and what is involved in tuning it?
Can we write insert statement in function in oracle?
What is execute immediate in oracle?
How to check your oracle database 10g xe installation?
Explain an extent?
What is the relation of a user account and a schema in oracle?