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

SELECT *FROM EMP WHERE SAL>(SELECT AVG(SAL) FROM EMP WHERE
DEPTNO=10);
this is correct answer. all the above answer are wrong except last one. Because in single row sub query we can't use group by clause. In all above queries they were used '>' simbol. So this is single row sub query matching operator.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by LDAP users?

699


Have you worked with/created Parameter file

1232


How to do unit testing in informatica?

728


What are the tasks that source qualifier perform?

635


Explain how many types of dimensions are available in informatica?

599






What are the different types of olap? Give an example?

564


tell me about your project functionality

1870


What is the sql query overwrite in source qualifier in informatica

621


What is Cognos script editor?

3790


where to store informatica rejected data?

684


What do think which one is the better joiner or look up?

733


what is granularity,what type of granularity we will take in fact tables either lowlevel or highlevel,if two tables having same granularity that is posiable or not

1878


What is an expression transformation in informatica?

523


If informatica has its scheduler why using third party scheduler?

781


Differences between connected and unconnected lookup?

610