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 |
why do we go for update strategy tr in SCD rather using the session properties?
ename,deptcount vamshi,3 kumar,5 krish,8 in o/p i want vamshi record 3 times kumar record 5 times like wise what is the logic.? give the entire logic plz
What is the format of informatica objects in a repository? What are the databases that informatica can connect to windows?
how many types of dimensions are available in informatica?
SOURECE Name id dept sal 1 a1 A 100 2 b1 B 200 3 c1 C 300 4 d1 D 400 TARGET: Name id dept sal 1 a1 A 100 2 b1 B 200 3 WER1 567 300 4 d1 D 400 I HAVE SOURCE AND TARGET. HOW TO VALIDATE DATA? TELL ME 5 STEPS ABOVE TABLE?
Why you use repository connectivity?
What is a poling?
How can you define a transformation? What are different types of transformations in Informatica?
SOURCE 1 a 1 b 1 c 2 a 2 b 2 c TARGET 1 A B C 2 A B C In oracle & informatica level how to achieve
Clarify the utilization of aggregator cache record?
What are the challenges you have faced in your Project (DWH- ETL)? Explain with example?
what transformations are used for Variable port?