find out first highest salary?
Answer Posted / tulasi
select * from emp x where 1=(select count(distinct sal)
from emp y where x.sal<=y.sal);
query to find nth sal
select * from emp x where &n=(select count(distinct sal)
from emp y where x.sal<=y.sal);
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
How to see the table columns used in an index?
How to convert csv to table in oracle?
What is Library Cache in Oracle?
How to define a cusotmer as a supplier in ORACLE R12
Does oracle charge for java?
Can objects of the same schema reside in different tablespace?
What happens if you lost a data file?
How to import one table back from a dump file?
How to rename an index?
What is logical backup in oracle?
Is primary key indexed by default in oracle?
How to drop an existing table in oracle?
Explain what are clusters?
Why do I get java.lang.abstractmethoderror when trying to load a blob in the db?
How would you go about verifying the network name that the local_listener is currently using?