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 / soorai ganesh

SELECT 'Second Highest Salary Is ', MAX(Salary) FROM Employee WHere Salary < ( Select MAX(Salary) FROM Employee )

SELECT 'Second Least Salary Is ',MIN(Salary) FROM Employee WHere Salary > ( Select MIN(Salary) FROM Employee )

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by recursive stored procedure?

988


How can we improve performance by using SQL Server profiler?

1108


What is the purpose of optimization?

1061


What is scheduled job and how to create it?

1038


What is difference between join and natural join?

1062


Explain the stored procedure?

1098


what are different types of backups available in sql server? : Sql server database administration

985


what method you can use to reduce the overhead of Reporting Services data sources?

268


role of sql sever 2005 in database rather than any other database

1992


Can you please explain the difference between primary keys and foreign keys?

1172


What is difference statement and preparedstatement?

1035


what is a transaction? : Sql server database administration

1053


How do I trace a query in sql server?

1001


What are horizontal and vertical scaling?

172


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

2115