select * from employees
where not exists (
select emp_no from dept_emp
where emp_no = employees.emp_no
);
需要将所查询的表和子表关联,不然查不出数据。
select * from employees
where not exists (
select emp_no from dept_emp
where emp_no = employees.emp_no
);
需要将所查询的表和子表关联,不然查不出数据。