find out the second highest salary?
Answer Posted / peter
SQL> select max(sal) sal
2 from (select sal,
3 dense_rank() over
4 (order by sal desc) rnk
5 from emp )
6 where rnk = 2;
SAL
----------
3000
SQL>
| Is This Answer Correct ? | 14 Yes | 9 No |
Post New Answer View All Answers
Explain what are the uses of rollback segment?
What do you mean by group by clause?
What is bulk load in oracle?
What are the various constraints used in oracle?
how to make an oracle object
What is SQL Tuning Advisor in Oracle?
What is catalog in Oracle?
Explain how you would restore a database using RMAN to Point in Time?
what is the scripts in data base?
normally database take to refresh time 2 hours. but client asked iwant to refresh with in 5 min that same database. do you have any option in BO and Oracle? explain me briefly...kavi
How would you go about verifying the network name that the local_listener is currently using?
How does propagation differ between Advanced Replication and Snapshot Replication (read-only)?
What is the relationship among database, tablespace and data file?
What is a dynamic performance view in oracle?
Explain the use of analyse option in exp command.