首页 小组 文章 相册 留言本 用户 搜索 我的社区 在线学堂 商城 购物车 支付钱包

[打卡]高一鸣----多表查询

2024-04-19 12:05:29
0
126

select employee_id,department_name
from employees e right join departments d
on e.department_id = d.department_id;

select employee_id,department_name
from employees e full outer join departments d
on e.department_id = d.department_id;

select employee_id,department_name
from employees e join
departments d
on e.department_id=d.department_id;

select employee_id,department_name
from employees e left join departments d
on e.department_id= d.department_id;

select employee_id,department_name
from employees e right
join departments d
on e.department_id= d.department_id;

select employee_id,department_name
from employees e left join departments d
on e.department_id where d.department_id is null;

select employee_id,department_name
from employees e left join departments d
on e.department_id= d.department_id is null;

select employee_id,department_name
from employees e left join departments d
on e.department_id= d.department_id;
#左下+右上
select employee_id,department_name
from employees e left join department_name d
on e.department_id = department_id
where departments_id is null;

select employee_id,department_name
from employees e left join departments d

评论
意见反馈