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 / akshay

Select ename, eno, sal, rownum
from (select ename, eno, sal from emp order by sal desc)
where rownum = 2;

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use procedures?

1007


Can one improve the performance of sql*loader? : aql loader

1099


How can we store rows in PL/SQL using array?

1270


What is difference between pls_integer and integer?

1011


Can we use pl sql in sql server?

1136


what is sql? : Sql dba

1071


What are the types of join in sql?

1149


Differentiate between sga and pga.

1208


What is pl sql commands?

1097


Which is better join or subquery?

1192


How do I debug a stored procedure?

1171


what are the advantages and disadvantages of cascading style sheets? : Sql dba

1105


What is a sql statement?

1018


what are tables and fields? : Sql dba

1105


How are functions and procedures called in PL/SQL?

1309