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 are actual and formal parameters?
Please send me Informatica 8.1 certification dumps, my mail id mona85gupta@gmail.com
How to use select statement to count the number of rows in oracle?
What is translate in oracle?
What is a sub query and what are the different types of subqueries?
How to bring a tablespace online?
What are the different windows events activated at runtime ?
Explain an exception and its types?
What do you mean by cdb and pdb in oracle 12c?
Hi this srilatha. I comlpeted my Oracle-hrms. can u provide me interview questions on Core hr, payroll,sshr,OLM etc..
What are the uses of a database trigger?
What are the ansi data types supported in oracle?
Explain implicit cursor.
Assuming today is Monday, how would you use the DBMS_JOB package to schedule the execution of a given procedure owned by SCOTT to start Wednesday at 9AM and to run subsequently every other day at 2AM.
15. Display the item_cost and then truncate it to the nearest hundred, ten, unit, tenth and hundredth.