Topic: staff list each department on the number of employees (employee number must be greater than 3), and department name,
My statement: select a. d. eptno, a.c mount (*) from (select e. *, d.d name from emp e, d dept where e.d eptno=d.d eptno) a Group by a. d. eptno Having a.c mount (*) & gt; 3;
System tip: lack of expression;
Standard answer: select d. *, Ed. The cou from dept d, (select deptno, count (*) cou from emp group by deptno having the count (*) & gt; 3) Ed Where d.d eptno=Ed. Deptno;
Does my child query logic error? Please feel free to comment!!!!! thank you