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 find five highest salaries from EMP table.
(there is a column SALARY)

Answer Posted / k.prashanth

Select
ename,sal,deptno
from emp
where sal in
(select max
(sal) from emp
where
level<=5
connect by
prior sal<sal
group by level)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of sql are there?

930


Enlist the advantages of sql.

939


What is sql profiler in oracle?

1015


Is postgresql a server?

997


Can we perform dml on view?

976


How can one get sql*loader to commit only at the end of the load file? : aql loader

1005


Can we use loop in sql?

924


How many developers work on postgresql?

917


Can %notfound return null after a fetch?

1005


How do I partition in sql?

904


what is a database transaction? : Sql dba

1108


Is left join inner or outer by default?

975


What do you mean by table in sql?

940


What is the current version of sql?

974


Why we use triggers in mysql?

938