find out the third highest salary?
Answer Posted / suresh kumar
Hi every body,
I give the standard format Query for this type of top most
and who are the top n people in the organization like that
If we take EMP table
Select * from EMP A where &n= (select count (distinct
(sal)) from EMP B where B.sal>A.sal)
If we give n value 1 or 2 or 3….etc then we gets top one,
top second, and top third person details.
This same query can we use top n people who are earning
maximum salaries in the Organization
Select * from EMP A where &n> (select count (distinct
(sal)) from EMP B where B.sal>A.sal)
| Is This Answer Correct ? | 38 Yes | 19 No |
Post New Answer View All Answers
What is columnar storage what is the advantage?
Explain what are clusters?
Can we use oracle pl/sql block in core java? if so how? pls get back to me .....
Name the three major set of files on disk that compose a database in Oracle?
How to use group functions in the select clause using oracle?
Explain mutating triggers.
Can we insert data in view oracle?
How to connect to oracle using service name instead of sid?
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??
How to create an oracle database?
What do database buffers contain?
What is the difference between sharding and partitioning?
What is an oracle cursor variable?
What happens if recursive calls get out of control?
ABOUT IDENTITY?