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

find the third highest salary?

Answer Posted / nripesh agarwal

select * from emp where salary=(select salary from emp
order by salary desc N,1);


// Put the value for N as for Nth highest salary
// e.g. for 2nd put N=2 , for 3rd put N=3 and so on...

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between drop and truncate commands?

1110


What are the parts of a basic sql query?

1014


What is a left join?

1007


How do you modify a table in sql?

1165


Which is better join or subquery?

1190


What does stand for in sql?

1025


What is left join in postgresql?

1092


What is cost in sql execution plan?

1045


How can we avoid duplicating records in a query?

1031


What is scope and visibility in PL/SQL?

1291


What is package in pl sql with an examples?

1087


What is the purpose of a sql?

1043


Is vs as in pl sql?

1037


Explain what is rdbms?

1086


Does a primary key have to be a number?

1003