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...

How to find the second largest salary in the emp database and
also How to find 3rd,4th and so on ........ in the emp database

plz mail the answer @ mak2786@gmail.com

Answer Posted / subhranghshu bhattacharjee

another way u can find 2nd largest salary,3rd largest
salary ... so on

select sal from(select sal from emp order by sal desc)
where rownum<3
minus
select sal from(select sal from emp order by sal desc)
where rownum<2

only change rownum to find various largest salary

Subhranghshu Bhattacharjee

Is This Answer Correct ?    4 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different types of data sources?

1084


What keyword you will use to get schema appended to the result set of a ‘for xml’ query?

1064


What is normalization? Explain different forms of normalization?

1230


what are triggers? : Sql server database administration

954


How to create an index on a view?

1141


How to automatically create a log when an exception is being received into SQL Server?

1360


Write a SQL query to make a column as unique?

1078


Can anyone tell that the extra features are there in SQL SERVER 2008 that are not available in previous versions .

1995


How to create dbo table in sql server?

1006


what is unique and xaml nonclustered index

1101


Explain what is the difference between union and union all?

1070


What is dbcc?

1180


You want to be sure that queries in a database always execute at the maximum possible speed. To achieve this goal you have created various indexes on tables which other statement will keep the database in good condition?

1130


What is page in sql server?

996


What is side by side migration in sql server?

1173