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

How can we find duplicate records in a table?

944


Which are the different case manipulation functions in sql?

1018


Why cross join is used?

1074


What is the use of triggers?

1031


How to order siblings in oracle hierarchy queries?

1038


What is the order of sql select?

1041


How many types of cursors supported in pl/sql?

1180


What are the different tcl commands in sql?

1170


What is the difference between nested table and varray?

998


Why is pl sql used?

976


Which data type is a composite type?

985


What do you think about pl/sql?

1023


which tcp/ip port does sql server run on? : Sql dba

1022


can a stored procedure call itself or recursive stored procedure? : Sql dba

1026


How can we debug in PL/SQL?

1131