Write a query to display Which deptno is containing highest
Sal > avg (sum (Sal)) of all deptno;
Avg (sum (Sal)) o f all deptno= 9675
Deptno, sum (Sal)
10 8750
20 10875
30 9400
Answers were Sorted based on User's Feedback
Answer / ravikishore
select deptno,sum(sal) from emp group by deptno having
sum(Sal) =(select max(sum(sal)) from emp group by deptno)
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / moorthy g
select deptno, max(sal) from emp group by deptno
having max(sal)> (select avg(max(sal)) from emp group by
deptno);
Output:
DEPTNO MAX(SAL)
---------- ----------
10 5000
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / aashish
select department_ID, sum(salary) from emp group by department_ID having sum(salary) > (select avg(sum(salary)) from emp group by department_ID);
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / jz
select deptno,max(sal) from emp
group by deptno
having max(sal)>(select avg(sum(sal) )from emp
group by deptno)
:)
| Is This Answer Correct ? | 3 Yes | 5 No |
Kimball and Inmon methodologies?
who is the best faculty for informatica in hyderabad ameerpet?
Data transformed successfully from Source table to target table. Now how you will ensure that the data in Target table is proper. I answered will verify one or two records and check Then question was that the Development is doing (1-2 record verification)but as a tester you have to verify the complete data, how you will do?? Please answer
In seqence generator transformation maximum limit is reached,after reaching maximum limit how will u insert the data
what is incremental data aggregation?
How to delete the (flat file) data in the target table after loaded.
In Lookup transformation a sql override should be done and disable the cache how do you do this procedure?
in which situations do u go for snowflake schema ?
How does the server recognize the source and target databases. Elaborate on this.
Two relational tables are connected to SQ Trans,what are the possible errors it will be thrown?
How we can create indexes after completing the load process?
In a simple mapping when i use aggregate t/r with out any condition or group by, i am getting output as only last record in the table . can any one explain it please.........?