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 the difference between $message and $$message? : Sql dba

995


What is scope and visibility in PL/SQL?

1198


What is equi join in sql?

1069


Difference between global and parameter variables?

1963


discuss about myisam key cache. : Sql dba

1019


What is partition in sql query?

998


What packages are available to pl/sql developers?

1045


how to decrement dates by 1 in mysql? : Sql dba

1016


Explain lock escalation? : Transact sql

1192


What are all the common sql functions?

1013


Can we create index on primary key?

961


Why is sql*loader direct path so fast?

1099


What is embedded sql in db2?

1013


What is data definition language?

1088


How do I edit a trigger in sql developer?

990