select d.deptno, d.dname Department, count(e.empno) Employees
from dept d, emp e
where d.deptno = e.deptno group by d.deptno, d.dname

Select ename Employee
from emp
where deptno = :deptno