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 define an anonymous block?
What is the disadvantage of User defind function?
Select all the employees who were hired in last 2 years and who works in dept where max managers are working.
State any two functions of oracle?
Explain the use of indexes option in imp command.
What is a sub query? Describe its types?
How to work with data objects interactively?
How to bring a tablespace online?
How to sort the query output in oracle?
Explain the use of consistent option in exp command.
Explain view?
What is a private synonym?
If any one has information regarding interview of NIC (National Informatics Centre),it would be of great help...
How to test null values?
Explain self joins in oracle?