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 / mehul

for 2nd highest salary

select max(salary) from employee where salary<(select max
(salary) from employee )


for 2nd least salary

select min(salary) from employee where salary>(select min
(salary) from employee )

i hope that will help you

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we need to use secondry database file? though, we can do same work using primary database file also.

6890


What is a data source or ds? : sql server analysis services, ssas

1006


Can sql servers link to other servers like oracle?

842


What is implicit cursors?

1086


Explain throw statement in sql server 2008?

998


What are subqueries in sql server? Explain its properties.

1019


How to set the current database in ms sql server?

1083


What is updatable resultset?

1008


Can you pass expressions to function parameters?

1103


What is an example of a foreign key?

975


How to convert numeric expression data types using the cast() function?

1069


What is a subquery in a select query statement in ms sql server?

1132


Why we use functions in sql server?

1080


What is table-valued sub query?

970


Explain the microsoft sql server delete command?

1024