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

Does partitioning help performance?

918


What is oltp (online transaction processing)?

981


How to apply cascading referential integrity in place of triggers?

1019


What is an indexed view?

945


Explain about sql server login?

1065


What is dbcc command in sql server?

1065


How many ways to create table-valued functions?

967


What happens on checkpoint?

1005


What is service broker?

989


What are the pros and cons of putting a scalar function in a queries select list or in the where clause?

1198


Why I am getting this error when dropping a database in ms sql server?

1058


What is raiseerror? What is raiseerror?

1114


Explain differences between web edition and business edition?

119


What is temporal table?

859


What is identity?

1000