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

how to find the second highest salary from emp table?

Answer Posted / anil maurya

select top 1 rate from HumanResources.EmployeePayHistory
where rate<(select MAX(rate) as R from HumanResources.EmployeePayHistory)
order by rAte Desc

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a relationship and what are they?

1230


What is data control language (dcl)?

1206


Explain clause in sql?

1073


Explain ttitle and btitle.

1165


Explain about various levels of constraint.

1000


What is the use of sqldataadapter?

1027


What is sql stand for?

1033


What is interval partition?

1104


Why do we need a foreign key?

1168


What is the difference between in and between in sql?

1109


What are different types of statements supported by sql?

1211


What has stored procedures in sql?

1104


Advantages and disadvantages of stored procedure?

1169


Why are aggregate functions called so?

1012


What is the difference between local variables and global variables?

1180