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

from the table display the 2nd highest salary?
and also the least 2nd salay?

Answer Posted / smitha

2nd Highest Salary

Select top 1 salary from (select distinct top 2 salary
from employee order by salary desc)a
order by salary

2nd Least Salary

Select top 1 salary from (select distinct top 2 salary
from employee order by salary asc)a
order by salary desc

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the critical issues you have resloved in your company

1920


What do you mean by an execution plan? Why is it used?

954


What are various aggregate functions that are available?

918


What is the purpose of optimization?

953


System variable and temporary variables

2185


explain the storage models of olap? : Sql server database administration

889


How do you delete duplicate records in sql server?

997


What is an execution plan?

1059


Can we add an identity column to decimal datatype?

944


Tell me what are cursors and when they are useful?

909


How optimize sql query with multiple joins in sql server?

829


What are different types of statement?

946


What is the advantage of sql server?

989


How will you make an attribute not process? : sql server analysis services, ssas

1011


What are the main differences between #temp tables and @table variables and which one is preferred?

1015