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

select rownum,empno,sal from (select
rownum,empno,sal from emp order by sal desc) group
by rownum,empno,sal having rownum=2;


This will clearly work.............

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is crud stand for?

993


what is timestamp in mysql? : Sql dba

1068


What are reports usually used for?

1017


What is sql dialect?

1108


What is range partitioning?

957


What is the maximum number of triggers, you can apply on a single table?

989


What are the different types of constraints?

1168


What is record type in pl sql?

982


What does the sign mean in sql?

983


What is number function in sql?

959


What are the advantages of sql?

1051


What does pragma mean?

1045


What are the most important characteristics of pl/sql?

1148


How many commands are there in sql?

1026


can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba

988