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

how to find the second highest salary from emp table?

Answer Posted / latha l

Select level,Max(sal) from emp
Where level=&level connect by prior sal>sal
group by level;


ENTER THE LEVEL MANUALLY

EX:Enter value for level: 2

YOU GET SECOND MAXIMUM SALARY.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is sql open source?

1022


Which tcp/ip port does sql server run on? How can it be changed? : Sql dba

1055


When should I use nosql database?

1056


What is self-join and what is the requirement of self-join?

1191


Which are the different types of indexes in sql?

1099


Can we debug stored procedure?

1064


what is a materialized view? : Sql dba

1129


How many joins in sql?

1055


How do I edit a trigger in sql developer?

1053


What kind of join is join?

1009


What is the difference between joins?

1094


What are the types of sql commands?

1157


Can we join two tables without common column?

1058


What is mutating error in pl sql?

1065


What is a subquery in sql?

1089