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
Why is oracle database so popular?
How to load data through external tables?
What is a table index in oracle?
Is it possible to center an object horizontally in a repeating frame that has a variable horizontal size ?
What is rich query?
What is dual table oracle?
What is flashback in Oracle?
What is raw datatype?
How to start your 10g xe server from command line?
What is format trigger?
how do u setup a replication site?
What are joins, explain all types of joins?
How to create a new tablespace in oracle?
what is the use of triggers in Java program? I mean where do we use triggers in Java programming?
How do you get nicely formatted results from an oracle procedure that returns a reference cursor?