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

How much does sqlite cost?

1033


what is heap table? : Sql dba

1103


How you can copy a file to file content and file to pl/sql table in advance pl/sql?

1145


how to fetch alternate records from a table? : Sql dba

1108


What is a constraint? Tell me about its various levels.

1160


What is forward declaration in pl sql?

1077


What is view explain with example?

928


what is a composite primary key ? : Sql dba

1050


How do I find duplicates in two columns?

1162


What is the current version of sql?

1023


Does user triggers have entry for trigger with compilation errors?

1034


how to select unique records from a table? : Sql dba

1111


What is a crud api?

954


Can we join tables without foreign key?

959


what are myisam tables? : Sql dba

1030