1. 【复习】找到雇员里还没有分配办公室的(列出名字和角色就可以)
select name,role
from employees
where building is null
2.【难题】找到还没有雇员的办公室
select building_name
from buildings
left join employees
on buildings.building_name=employees.building
where role is null
1. 【复习】找到雇员里还没有分配办公室的(列出名字和角色就可以)
select name,role
from employees
where building is null
2.【难题】找到还没有雇员的办公室
select building_name
from buildings
left join employees
on buildings.building_name=employees.building
where role is null