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 / raghavendraprasad

select salary from emp e where &n-1=(select count(*) from
emp where salary>e.salary);

Is This Answer Correct ?    7 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use joins?

1033


How do you optimize a query?

995


Why query optimization is needed?

921


What is before trigger?

999


what is user defined functions? : Sql dba

1030


Why do we need pl sql?

972


How do I kill a query in postgresql?

1110


Does varchar need length?

991


What is right join sql?

963


What does partition by mean in sql?

959


What is the basic structure of an sql?

1098


how to rename an existing table in mysql? : Sql dba

1060


Explain how to use transactions efficiently : transact sql

973


How to pipe multiline string to isql?

1005


How do you pronounce sql?

1005