Select all records where dept no of both emp and dept table matches.
SELECT * FROM emp e, dept d WHERE e.deptno = d.deptno;