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...

Write a query to get 2nd maximum salary in an employee table ?

Answer Posted / debasish sinha

select ename,sal,deptno
from emp
where sal =
(
select max(sal)
from emp
where level=2
connect by prior sal>sal
group by level
)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pl sql variable?

1034


What are different functions in sql?

998


what are the limitations of mysql in comparison of oracle? Mysql vs. Oracle. : Sql dba

1008


What is a mutating table and a constraining table?

1178


What does sql stand for?

1055


What is anonymous block in sql?

1172


Is ms sql is free?

1079


What are the types of subqueries?

1102


What are the steps for performance tuning.

1395


What is a dirty read sql?

1243


Who developed sql?

1091


Explain raise_application_error.

1145


How many types of literals are available in pl sql?

1166


What is trigger and stored procedure in sql?

1092


What is dynamic query?

1034