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

1.how to extract the second highest salary from emp table
having sal as a column which contains the salary of all
employee of an organisation.

Answer Posted / hema

Select sal from emp a where 2=(select count(distinct sal)
from emp b where a.sal <= b.sal)

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to make an oracle object

2338


query optmization techniques and quwry analyser+projects+ppts

2402


How to drop a stored function?

1124


How to create a table interactively?

1062


What operating systems are supported by oracle database 10g xe?

1017


How to create a table in a specific tablespace?

948


what is insert all statement in sql

6481


How to export data to a csv file?

1271


How to insert a new row into a table in oracle?

1137


How to use like conditions in oracle?

1023


What is clustered table in Oracle?

1169


Explain the use of file option in exp command.

1115


How to check the oracle tns settings?

1030


How to pass a cursor variable to a procedure?

1091


What is rowid and rownum in oracle?

992