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 / ram

SELECT * FROM emp e WHERE sal > (SELECT AVG(sal) FROM emp m
WHERE e.deptno = m.deptno GROUP BY deptno) ORDER BY deptno

gives u salary greater than the average salary of their
departments...

Is This Answer Correct ?    22 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of lookup transformation?

636


Can we use procedural logic inside infromatica? If yes how, if now how can we use external procedural logic in informatica?

606


Can some one explain me about Telecommunications(wireless) project in Informatica? Thanks in advance

1565


my source is junk data how will u remove that junk data by using unix please any one replay me

3247


What is transformation?

663






Write the different tools in the workflow manager?

577


Whats there in global repository

1272


How can we send the flat file data to different targets(which are also flat files) based on the name of flat file with out adding extra columns?

1626


How do you load unique records into one target table and duplicate records into a different target table?

712


What is the procedure for creating independent data marts from informatica 7.1?

570


What is a filter transformation and why it is an active one?

564


Where are the source flat files kept before running the session?

628


How many types of sessions are there in informatica.please explain them?

678


Please let me know how to make encryption and decryption with example?

1475


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

667