Answer Posted / anilchandu
Select * from emp x where 2=(select count(distinct sal)
from emp y where x.sal<=y.sal)
where x,y are alias names.
If you want 3rd heighest salary then just replace 2 by 3
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How to insert multiple rows with one insert statement in oracle?
ABOUT IDENTITY?
How to find out what oracle odbc drivers are installed?
In SAP ECC 6.0 , under DB02 tcode , Tablespace name to be explain stepy step all the col
What is dynamic proxy?
Explain oracle instance.
What are the differences between char and nchar in oracle?
Why does for update in oracle 8 cause an ora-01002 error?
How to set a transaction to be read only in oracle?
What are nested tables?
What is a trigger and what are its types?
What is open database communication (odbc) in oracle?
Assuming that you are an End User How to find that in the payment Batch some of the Invoice was Missing To pay How to find That??
Explain integrity constraint?
How to best split csv strings in oracle 9i?