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 disk partitions should I have?

1040


What are system versioned tables?

1074


What are the ddl commands?

1055


What is the difference between joins?

1094


Explain unique key in sql.

1060


What does fetching a cursor do?

1133


What is natural join in sql?

1044


What is numeric function sql?

1106


what are the properties and different types of sub-queries? : Sql dba

1073


How delete all records from table in sql?

1014


What is a data definition language?

1195


Is hadoop a nosql?

1050


Which is faster count (*) or count 1?

1088


Mention what pl/sql package consists of?

1041


Why procedure is used in sql?

1084