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 list all tables in your schema?
In what script is snap$ created? In what script is the scott/tiger schema created?
What happens if you set the sga too low in oracle?
What is the maximum limit on the number of columns in a table?
Explain an integrity constrains?
What is an anonymous block?
What is oracle rownum?
Is there a combination of "like" and "in" in sql?
How to write numeric literals in oracle?
What are the parameters that we can pass through a stored procedure?
What are the differences between date and timestamp in oracle?
How to list all indexes in your schema?
Is insert autocommit in oracle?
How index is implemented in oracle database?
Can we convert a date to char in oracle and if so, what would be the syntax?