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

what are string data types? : Sql dba

1047


how can we know the count/number of elements of an array? : Sql dba

1063


How to call shell script from pl sql procedure?

1284


What are the subsets of sql?

1136


Explain commit, rollback and savepoint.

1004


How to start the command-line sql*plus?

1058


What are the types of variable use in pl sql?

1082


What is the best free sql database?

1057


What does the sign mean in sql?

993


Is sql injection illegal?

1027


explain the delete statements in sql

1063


What is union and union all keyword in sql?

1044


Can we perform dml on view?

1046


Why do we use joins in sql?

973


How to get help at the sql prompt?

1118