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 second highest salary?

Answer Posted / annada

SELECT e.lastname,e.salary FROM employees e
WHERE 1=(SELECT count(*) FROM employess s
WHERE s.salary>e.salary


that will return 2nd highest salry .if we place insted of 1
as 2 then we can get 3 rd highest salary .

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Assuming today is Monday, how would you use the DBMS_JOB package to schedule the execution of a given procedure owned by SCOTT to start Wednesday at 9AM and to run subsequently every other day at 2AM.

1904


How to use "startup" command to start default instance?

962


What happens if you set the sga too low in oracle?

1051


Is oracle a language?

896


What privilege is needed for a user to query tables in another schema?

918


How to download oracle database 10g xe?

957


Explain about functional dependency and its relation with table design?

951


Explain what are the advantages of views?

1012


How to assign query results to variables?

1010


How to do a full database export?

1043


Please explain compound trigger in oracle?

992


How can I see all tables in oracle?

949


How to define a data field as not null?

1059


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

947


How to convert dates to characters in oracle?

982