Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a SQL query which should fetch the 5th maximum salary
of an employee from the table?

Answer Posted / vsandhyana

Hi Hashmatulla Baig,

I think your query will not give the desired output. it
should be modify please refer below for the same.

SELECT empno, sal
FROM
(
select empno, sal, (ROW_number() OVER (order by sal desc)) R
from emp
order by sal desc
)
WHERE R = 5;

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the complex report you faced in real time?

2133


7. What is performance tuning?

1949


please please give me some banking calculations in framework manager.

2046


what is the role of cognos comsultant?what actually it means?pls reply

2266


Hi Buddies...i am lalitha. i am willing to appear for cognos bi-author certification. can anyone of you send me cognos dump. please please help me.

1804


How do we drill through from a powerplay cube to reportnet?\

2312


How do you improve the performance of the Cognos Analytics report

983


Can you explain the advantage of using shortcuts?

990


What are types of batch available in cognos?

928


Why need staging area database for dwh?

1035


4. How many dimensions did you use in your reports?

1901


What is model filter?

1120


What is looping and how to avoid it in framework manager?

1166


Explain the difference between powerplay transformer and power play reports?

975


All ready we have alias tables for modifications why we are using views if anybody this answer plz reply me

2031