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

How to delete duplicate rows in sql server?

1053


How do I connect to sql server database?

948


When do you think a developer should use sql server-based cursors?

975


What does sql server mean?

969


What does asynchronous call backs means?

1071


Which is faster statement or preparedstatement?

887


How to recompile stored procedure at run time?

1005


How to find related tables in sql server?

870


Why we use trigger in sql server with example?

916


What is a filestream?

939


What is sleeping status in sql server?

980


what is blocking? : Sql server database administration

980


Is profiler the only tool that has the ability to audit and identify ddl events? : sql server security

1010


Why would you call update statistics?

958


What is row-level compre?

938