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 / sridhar sahoo

select distinct top 1 salary from payroll..emp where salary
in(select distinct top N salary from payroll..emp order by
salary desc)

if u want top 2 put 2 at the pacece of N
if u want top 5 put 5 at the pacece of N
if u want ..............................

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you clear a log file?

1030


How is SQL Azure different than SQL server?

223


Why SQL Agent is used?

1118


How to find tables without indexes?

1072


What is the largest component inside a field?

1095


Which sql server table is used to hold the stored procedure script?

927


What is ssl in sql server?

1055


What is sql stored procedure?

1062


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

253


What is serializable?

1026


what is normalization? Explain different levels of normalization? : Sql server database administration

1288


What is the maximum size per database for sql server express?

1023


What are the underflow and overflow behaviors on float literals?

1098


What is the purpose of optimization?

979


Do you know what are acid properties of transaction?

939