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 literal?

987


Select all the employees who were hired in last 2 years and who works in dept where max managers are working.

2944


Differentiate between translate and replace?

1082


What is the difference between translate and replace in oracle?

1148


List the various oracle database objects?

1041


What are triggers in oracle?

1009


How to shutdown your 10g xe server?

1132


What is a read only transaction in oracle?

998


Explain what are the characteristics of data files?

1064


Differentiate between function and procedure in oracle.

1049


How much memory your 10g xe server is using?

1086


What is the usage of merge statement?

1127


What are the numeric comparison operations?

1093


How to open a cursor variable?

1011


How to rename an index in oracle?

1099