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 are the types of operators available in sql?

1008


What is sqlerrm?

880


how to increment dates by 1 in mysql? : Sql dba

924


why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba

1040


What are schema-level triggers?

1040


What are the query optimization techniques?

885


What are user defined functions?

946


What is a pdo connection?

943


Where not exists in sql?

907


Mention what problem one might face while writing log information to a data-base table in pl/sql?

1158


What is dcl in sql?

903


How do I partition in sql?

904


Explain the types of joins in sql?

959


Which is faster union or join?

898


Write a sql query to find the names of employees that begin with ‘a’?

950