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 DB View and Bus View?

1928


What is drill down and slicing and dicing whats the difference between them?

984


where you can save the report net documentation in our local system?

1000


Looking for IBM COGNOS Certification C1000-065 , C2020-605 , C2090-621 , C2090-623 Dumps?

1026


----------------Diff b/w Dimensional modeling and Relational modeling?

14863


Can you define drill across?

924


What are all the components of Report Studio?

1041


How can create users and permissions in cognos?

908


What are the services provided in cognos 8?

970


What is a dimension?

987


what is model and say about process how to create model and how to test model?

996


5. Which type of report you build more, list, crosstab or chart and why?

1949


what is a prompt value in report studio and variables ?

2621


Actually we have 500 users when they run the report display the flage image related country user? How its possible?

1978


What is the function of cognos dispatcher?

1138