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 3 salary from payroll..emp order by
salary desc)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know what is difference between index seek vs. Index scan?

1002


When we should use @@error?

1037


What are the types of lock supported by ?

1093


What is a field name?

1018


what does the automatic recovery do? : Sql server administration

1081


If a stored procedure is taking a table data type, how it looks?

6521


How to apply filtering criteria at group level with the having clause in ms sql server?

1046


Why do we partition data?

1080


Is oracle faster than sql server?

1008


What is the exact numeric data type in sql?

1056


how many layers of tcp/ip protocol combined of? : Sql server database administration

1049


what information is maintained within the msdb database? : Sql server administration

1017


What is the full meaning of dml?

999


Write SQL queries on Self Join and Inner Join.

1216


What is a non equi join?

1023