There is a table with emp salary column how to get the fields belongs to the salary greater than the average salary of particular department.
Write a query

Answer Posted / vivek singh

SELECT * FROM EMP WHERE SAL>(SELECT AVG(SAL) FROM EMP)
AND DEPTNO=10;

O/P:
7839 KING PRESIDENT 17-NOV-81 5000 10
7782 CLARK MANAGER 7839 09-JUN-81 2450 10

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Separate from an archive server and a powerhouse?

506


How do you remove duplicate records in informatica? And how many ways are there to do it?

725


Target increases every day even though no new record was inserted

1116


How do you handle two sessions in Informatica

675


Describe an informatica powercenter?

621






How to extract sap data using informatica?

616


What is workflow manager?

587


is it possible to index the data in cache of lkp transformation ?

1533


What is workflow monitor?

607


How can we improve session performance in aggregator transformation?

682


What is Data Caches size?

668


What is the difference between STOP and ABORT options in Workflow Monitor?

707


can any one explain me what i have to tell about insurance project in interview,,,,when he asked to tell about ur project

2147


can anyone explain me about retail domain project in informatica?

7447


expain about the tune parameters?

1896