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

What is prepared statement in sql?

1100


how to calculate expressions with sql statements? : Sql dba

1096


What is mdf ldf and ndf?

1057


What are different types of indexes?

1056


How can you view the errors encountered in a trigger?

1022


What is primary key secondary key alternate key candidate key?

1087


What is a full join?

1043


how many values can the set function of mysql take? : Sql dba

1037


Is the primary key an index?

1078


Can we call stored procedure in function?

1002


Is sql workbench free?

1045


What is the default isolation level in sql server? : Transact sql

1087


what is sub-query? : Transact sql

1161


What is percent sign in sql?

1324


What is trigger in sql and its types?

1113