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


Display those managers salary greater than the average
salary of his employees?(Based on oracle standard Emp table)

Answers were Sorted based on User's Feedback



Display those managers salary greater than the average salary of his employees?(Based on oracle sta..

Answer / chakradhar

select ename,sal,mgr
from emp mgr
where sal > (select avg(sal)
from emp emp
where emp.mgr = mgr.empno)

Is This Answer Correct ?    10 Yes 2 No

Display those managers salary greater than the average salary of his employees?(Based on oracle sta..

Answer / sehajshangari1235

select distinct m.ename from emp e,emp m
where m.sal>(select avg(e.sal) from emp e,emp m where
e.mgr=m.empno);


call back for more
7204719446

Is This Answer Correct ?    5 Yes 0 No

Display those managers salary greater than the average salary of his employees?(Based on oracle sta..

Answer / pradeep

select ename,sal,mgr
from emp a
where sal > (select avg(sal)
from emp b
where b.mgr = a.mgr)

Is This Answer Correct ?    10 Yes 6 No

Display those managers salary greater than the average salary of his employees?(Based on oracle sta..

Answer / saiprasanna

select ename,empno from emp a where sal>(select avg(sal) from emp b where mgr=a.empno);

Is This Answer Correct ?    1 Yes 3 No

Display those managers salary greater than the average salary of his employees?(Based on oracle sta..

Answer / lal ajith kumara

select distinct (first_name)
from employees
where employee_id in (select manager_id
from employees
where salary > (select avg(salary) from
employees))

Is This Answer Correct ?    1 Yes 3 No

Display those managers salary greater than the average salary of his employees?(Based on oracle sta..

Answer / murali

select m.ename from emp e,emp m where e.mgr=m.empno and
e.sal<m.sal

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More Oracle General Interview Questions

3. Adapt your query in (2) above so that only post codes with more than twenty orders are displayed.

0 Answers   Wipro,


Draw E-R diagram for many to many relationship ?

0 Answers   Keane India Ltd,


What is raw datatype in oracle?

0 Answers  


What is memory advisor in Oracle?

0 Answers   MCN Solutions,


IS it possible to built the oracle database without setting the kernal parameters?

0 Answers   EDS,


i have a question here... As of my knowledge, when we apply an index (b-tree)on a column, internally it arranges the data in b-tree format and do the fetching process correspondingly... and my quetion is... How a bit-map index arranges the data internally when applied on a column?IS it in b-tree format or whatelse?

0 Answers   Oracle,


Can we create index on views?

19 Answers   CTS, Syntel, TCS,


Why do I get java.lang.abstractmethoderror when trying to load a blob in the db?

0 Answers  


What happens if you lost a data file?

0 Answers  


how many columns can a plsql table have

13 Answers   NIIT,


What is the dynamic sql in oracle?

0 Answers  


Select the Nth lowest value from a table?

4 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1809)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)