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 / saikrishna reddy .k

To find second highest salary
select max(sal) from emp where sal not in (select max(sal)
from emp)

to find order
select top 5 8 from emp order by sal desc

Is This Answer Correct ?    30 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is change data capture (cdc) in sql server 2008?

979


What are the two authentication modes in sql server?

1058


Explain different types of lock modes in sql server 2000?

879


What are the different acid properties?

1013


Can you leave a union at any time?

999


What is ms sql server service broker?

932


What do you think of this implementation? Can this be implemented better?

874


What are the different editions available in sql server 2000?

993


What is read uncmmited?

1010


Explain why variables called the most powerful component of ssis?

990


Can we delete data from a view?

881


How each E-R model constructs can be mapped to the relational model?

920


How to create a view with data from multiple tables?

965


What is the log shipping?

952


Do you know sql server 2008 introduces automatic auditing?

906