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 a string data type in sql?

1046


What are synonyms in sql?

975


What does data normalization mean?

972


Explain the difference between triggers and constraints?

980


What is a function in oracle pl sql?

1043


How to execute a stored procedure?

1096


Why do we use procedures in sql?

1089


Which is better varchar or nvarchar?

999


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

1169


What is consistency?

1131


what are the advantages a stored procedure? : Sql dba

978


What do you mean by dbms? What are its different types?

1019


What is an ndf file?

995


What does seeding a database mean?

972


how to calculate the difference between two dates? : Sql dba

1064