查询

SELECT employees.last_name, employees.first_name, dept_emp.dept_no
FROM employees, dept_emp
WHERE employees.emp_no = dept_emp.emp_no; 

自然连接
SELECT employees.last_name, employees.first_name, dept_emp.dept_no
FROM employees JOIN dept_emp
ON employees.emp_no = dept_emp.emp_no;