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

first find second largest salary in the emp database:

select min(sal)sal from(select sal from emp order by sal
desc)
where rownum<3
u can find 3rd,4th... so on ,only change rownum
like rownum<4,rownum<5 ... so on

Is This Answer Correct ?    10 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of indexes?

1082


What are subquery and its properties?

1049


What stored by the master? : sql server database administration

1109


How to create a new login name in ms sql server?

1062


What is the Disadvantage of indexed sequential file.

1082


Explain partitioned view?

1068


What is the difference between mysql and sql server?

1022


Does order by actually change the order of the data in the tables or does it just change the output?

1145


How raid can influence database performance?

1030


What are the pre-defined functions in the sql server?

1108


How does stuff differ from the replace function?

1010


What command would you use to add a column to a table in sql server?

1307


whats new about truncate in sql server 2008?

2501


How can we remove orphan records from a table?

982


Write the syntax for stuff function in an sql server?

1024