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

What are the informatica performance improvement tips

619


What is main use of mapplet?

664


list out all the transformations which use cache?

693


What is option by which we can run all the sessions in a batch simultaneously?

667


explain about unit testing? in real time?

1674






Explain sql transformation in script mode examples in informatica

608


what is the hint? how to use it to reduce the query processing in program?

6329


COL1,COL2 ABC,1 XYZ,2 HERE IN COL2 VALUES 1,2 NOT STSANDARD(IE MEANS NOT FIXED VALUES LIKE OTHER SOME VALUES LIKE 10,20) O/P IS COL1,COL2 ABC,2 XYZ,1

1539


What are the steps involved in the migration from older version to newer version of Informatica Server?

1590


What are the tasks that can be performed using sq?

617


how to create user defined function (udf) in informatica

788


How can we use batches?

606


If the source has duplicate records as id and name columns, values: 1 a, 1 b, 1 c, 2 a, 2 b, the target should be loaded as 1 a+b+c or 1 a||b||c, what transformations should be used for this?

8567


What is union transformation?

577


if we have a delimiters at unwanted places in a flat file how can we over come those.

1572