差集
熟悉left join的朋友可以看一看。
select de.dept_no,de.emp_no,s.salary from salaries as s inner join dept_emp as de on s.emp_no=de.emp_no left join dept_manager as dm on de.emp_no=dm.emp_no where dm.emp_no is null;
熟悉left join的朋友可以看一看。
select de.dept_no,de.emp_no,s.salary from salaries as s inner join dept_emp as de on s.emp_no=de.emp_no left join dept_manager as dm on de.emp_no=dm.emp_no where dm.emp_no is null;