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 / gourvendra singh

Please put the below query, u will get the second highest
salary of the table :---

select sal from(select sal from
(select distinct sal from emp order by sal desc)
where rownum<=2 order by sal asc)
where rownum=1;

Is This Answer Correct ?    488 Yes 264 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of normalization are there?

894


What is sql architecture?

980


Does sap use sql?

927


Can we insert in sql function?

1022


Why select is used in sql?

963


Explain foreign key in sql?

968


How to create an array in pl/sql?

1008


What is the difference between Union and Union all. Which is faster.

1340


How can you select unique records from a table?

987


What is view explain with example?

879


Is sql easier than java?

944


What is bind variable in pl sql?

976


What is a pdo connection?

944


How do I run a pl sql procedure in sql developer?

911


How long will it take to learn pl sql?

888