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 out the third highest salary?

Answer Posted / sudheer

Guys Few of you have submitted an optimal query.

select distinct sal from emp A where 3 = (select count(sal)
from emp B where a.sal > b.sal)

However the integer 3 will not give the third highest salary
as expected. Point should be noted that the row starts with
zero.

so the actual result will the fourth highest salary with the
above query.

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to check database size in Oracle?

1189


what is the use of system.effective.date variable in oracle?

1111


What are the different types of partitions in oracle?

977


How to add a new column to an existing table with a default value?

1016


What is a connect identifier?

1037


What happens in oracle commit?

1024


What is the difference between online and offline backups?

1055


How to loop through data rows in the implicit cursor?

1073


What is the maximum limit on the number of columns in a table?

1083


How to list all indexes in your schema?

1091


what are the advantages of running a database in archive log mode?

2201


How to convert csv to table in oracle?

989


How would you change old and new values in an insert, delete and update triggers?

1020


Can u please explain me the Discussion on Except ,using cast like type cast. Question in the context of difference between two tables

2059


Explain an extent?

1097