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

Can you define a query subject?

1010


What is called materialized view?

1069


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

1203


What are the advantages of using cognos sql?

1187


Can we test the report other than manual testing?

2173


2. We have asked to create a repots showing sales by region in order to determine which regions are generating the most revenue and highest sales volume. The report needs to include the revenue and quantitiy sold of each subcategory with in category.

2206


Write some methods to apply securities in framework manager model?

1115


what is the diff. between a link n a union? what is a custom view? what is the use of unlocking a report ? plz answer to these

2019


Can anyone give me the url for cognos forum which is similar to forumtopics.com/busobj for business objects?

2043


How Metrics Studio is better than Report Studio?

2596


Can the expiration parameter of 365 in the cognos 8 configuration how to increase common symmetric key lifetime in days

3613


What is set to be Cognos configuration?

1025


what are the special features in cognos reportnet?

1059


Define the cognos reporting tool?

1042


Can you define drill down and drill up?

1032