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 second highest salary of the emp table

Answer Posted / gyana ranjan behera

sql>select ename,sal from(select ename,sal,rownum rn from
(select ename,sal from emp order by sal desc)
where rn=2;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you know about normalization? Explain in detail?

934


How to declare a local variable?

1097


How to best split csv strings in oracle 9i?

1023


How to delete an existing row from a table in oracle?

1052


What is tns service name?

1109


How to get execution path reports on query statements?

966


How to select some rows from a table in oracle?

1055


What is materialized view in Oracle?

1060


How to create an oracle database?

1014


How to add another datafile to a tablespace?

1017


Explain oracle instance.

1157


Why do I get java.lang.abstractmethoderror when trying to load a blob in the db?

987


What is an oracle function?

1133


When do we use group by clause in a sql query?

1024


How to view existing locks on the database?

1031