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...

i need department wise top 2 employees salary.which logic
i will use

Answer Posted / mukesh kumar

SELECT * FROM (SELECT NAME,SALARY FROM EMP ORDER BY SALARY
DESC)
WHERE ROWNUM < 3

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a primary key? : Sql dba

1086


what is the difference between union and union all? : Sql dba

1068


Write the alter statement to enable all the triggers on the t.students table.

1175


Can a composite key be null?

1034


what is a cursor? : Sql dba

1066


What is the file extension for sql database?

1063


Explain the difference between rename and alias?

1068


Can we use having without group by in sql?

1051


What is rtm in testing?

1175


What are the disadvantages of not performing database normalization?

1216


What is pessimistic concurrency control? : Transact sql

1135


Why do we need view in sql?

1039


What is dense_rank?

989


Can a varchar be a primary key?

1049


What are basic techniques of indexing?

1441