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 exactly sql injuction.how to overcome.....

2595


What guidelines should be followed to help minimize deadlocks?

993


How to create indexed view?

1107


between cast and convert which function would you prefer and why?

1015


Give me a SQL Query to find out the second largest company?

1231


What are the types of normalization?

1076


you have couple of stored procedures that depend on a table you dropped the table and recreated it what do you have to do to reestablish those stored procedure dependencies?

1096


What are system databases into sql server (2005/2008) : sql server database administration

1053


What is SQL Azure Fabric?

112


How to send a ssrs report from ssis?

183


what's the maximum size of a row? : Sql server database administration

1164


How to list all login names on the ms sql server?

1185


What is sql view?

1117


How to write character string constants or literals in ms sql server?

1067


You are doing log shipping due to some reasons it is failing. How you will proceed from there

2115