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

I Have Employee table having column name as ID,SALARY
how to get second max salary from employee table with id
ex
ID SALARY
1 20000
7 37000
2 5000

Answer Posted / elumalai.k

select top1 id,salary from employee
where
(salary<(select max (salary) As sal from employee As Empp))
orderby salary desc.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is buffer cash in sql server?

1119


How do I find the sql server version?

981


how do you test proper tcp/ip configuration windows machine? : Sql server database administration

1016


Difference between Logical Page and Physical Page in SSRS.

466


Mention what are the different types of ssrs reports?

148


What is the function of inner join?

1025


What is log shipping? Can we do logshipping with SQL Server 7.0 - Logshipping is a new feature of SQL Server 2000. We should have two SQL Server - Enterprise Editions. From Enterprise Manager we can configure the logshipping. In logshipping the transactional log file from one server is automatically updated into the backup database on the other server. If one server fails, the other server will have the same db and we can use this as the DR (disaster recovery) plan.

2728


How can we use ConnectorJ JDBC Driver with MS SQL?

973


How to get a list of columns using the "sys.columns" view in ms sql server?

934


What is for xml in sql server?

1013


What are differences in between sql server 2012 and sql server 2016?

1002


How is table type constraint applied to a table?

955


what is the difference between Delete and Truncate command in SQL

1104


What do you understand by replication in sql server?

1018


What is star, snowflake and star flake schema? : sql server analysis services, ssas

1111