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

Can a formula column be obtained through a select statement ?

2380


What are a query and state the different types of queries and their uses?

1064


What is bind variable in oracle 11g?

1095


How do I connect to oracle?

1080


How do I decide when to use right joins/left joins or inner joins or how to determine which table is on which side?

1085


How to get execution statistics reports on query statements?

1152


Which environment variables are absolutely critical in order to run the OUI?

2171


what is Single Byte Overhead...?

2611


How can we find out the duplicate values in an oracle table?

1118


How to delete all rows a table in oracle?

1119


How can I create database in oracle?

1066


What is oracle used for?

1069


What is open database communication (odbc) in oracle?

1048


What is the difference between formal parameters and actual parameters?

1153


Can we commit inside a function in oracle?

1012