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

Is primary key clustered or nonclustered?

1006


What is sql deadlock?

1129


What is sql entity?

1091


What are the 3 types of behavioral triggers?

1246


What is rollback?

1108


What is lexical units in pl sql?

1139


how to include numeric values in sql statements? : Sql dba

1098


how mysql optimizes distinct? : Sql dba

1074


What is a left inner join?

1011


Does inner join return duplicate rows?

973


What is sap sql anywhere?

1066


Is join an inner join?

961


what are null values? : Sql dba

951


Explain scalar functions in sql?

1059


How do I run a pl sql procedure in sql developer?

966