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 / ramesh.ch

select max(salary) from emp
where salary< ( select max(salary) from emp)


explanation::

first sub query returns maximum salary of employee
than main query returns maximum salary lessthan the maximum
salary return by subquery

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by recursive hints in oracle?

1030


How do I use os authentication with weblogic jdriver for oracle and connection pools?

1000


What are the ways tablespaces can be managed and how do they differ?

2274


What is oracle in java?

913


What is a Garbage Collection? and what is full recursive Garbage collection?

2848


What is the difference between substr & instr functions?

1126


What to do if the binary spfile is wrong for the default instance?

1001


How to empty your oracle recycle bin?

984


How to define a procedure inside another procedure?

966


How does oracle handle read consistency?

1052


What is oracle sid?

893


How to select some columns from a table in oracle?

1007


What are the most common interview questions on ETL Testing for experience?

1080


Is oracle an open source?

1023


What is an anonymous block?

1159