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

can anybody tell us, how to select 2nd max salary from
table.
my id is ashish.akk@gmail.com

Answer Posted / prasad237

with x as(select row_number over(order by sal desc) as rid,* from emp)
select * from x where rid=n
we can retrieve nth max sal

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does a server store data?

957


Name three of the features managed by the surface area configuration tool? : sql server security

1034


What are the advantages dts has over bcp?

1052


Difference between aggregate functions of sql?

1149


What is public role in sql server?

1216


Explain something about security and SQL Azure?

134


What are the types of dml?

1032


what is difference between NULL and ISNULL in SQL Server 2008?

1058


Define Business Edition in SQL Azure?

102


What are the advantages of passing name-value pairs as parameters?

1220


Is sql server free?

977


What is the library index called?

1113


What are the difference between clustered and a non-clustered index?

1091


What is temporary table in sql server? Why we use temp table?

995


What is the report builder?

143