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 sql constant?

942


Is sql better than access?

961


What is pls_integer in pl sql?

1029


Is it possible to link two groups inside a cross products after the cross products group has been created?

953


What is the difference between left and left outer join?

891


How to write a query to show the details of a student from students table whose

936


How to execute a stored procedure?

1029


Can we change the table name in sql?

887


What are the usages of sql?

1008


Show how functions and procedures are called in a pl/sql block.

1040


What is the difference between pl and sql?

1033


Why indexing is needed?

939


What is sequence in sql?

936


How do I run a sql trace?

905


which types of join is used in sql widely? : Sql dba

928