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 a schema in oracle?

1067


Explain about your project and its relation to the current job position you are applying to?

1080


Explain an index?

1182


What are the general rules on data consistency?

1066


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

2452


Is oracle a language?

993


What is an oracle function?

1246


What are joins, explain all types of joins?

2366


Other than making use of the statspack utility, what would you check when you are monitoring or running a health check on an Oracle 8i or 9i database?

2038


How to compare dates in oracle sql?

1162


What do you understand by database schema and what does it hold?

1308


How to create lov dynamically at runtime & attach to text field?

1240


How do I uninstall oracle 11g?

1179


How to unlock the sample user account in oracle?

1079


What is the difference between alert log file and tarce file ?

2236