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

explain about unit testing? in real time?

1655


How can one identify whether mapping is correct or not without connecting session?

875


How are the sources and targets definitions imported in informatica designer?

666


Write the different tools in the workflow manager?

569


Write the prerequisite tasks to achieve the session partition?

638






Explain the tuning lookup transformation - informatica

607


differences between service based and product based?

1563


Define joiner transformation?

590


Hi, I want to change date type char value integer value? I tried alter table tab_name modify (newcolumn newdatetype). But The columns have 10 million values(char type) so I want to load now numeric data. How it is possible? Old Values New Value(I want to load numeric data but the old value should be there in the column) Y 1 N 0 ERROR at line 1: ORA-01439: column to be modified must be empty to change datatype Please help on this. Thanks, GM

3442


Tell me can we override a native sql query within informatica? Where do we do it? How do we do it?

626


Differentiate between a database and data warehouse?

650


What is informatica powercenter repository?

709


What is the need of etl tools?

605


What is a stored procedure transformation?

607


Where is metadata stored?

621