标签:date ble str span create question 查找 输出 last
1、题目描述
输入描述:
无
输出描述:
last_name | first_name | dept_name |
---|---|---|
Facello | Georgi | Marketing |
省略 | 省略 | 省略 |
Sluis | Mary | NULL |
2、代码:三表关联查询,相当于头两个表查询之后的结果,然后再和第三个表关联查询。
select e.last_name,e.first_name,d.dept_name from employees e left join dept_emp dn on e.emp_no=dn.emp_no left join departments d on dn.dept_no=d.dept_no;
19、查找所有员工的last_name和first_name以及对应的dept_name
标签:date ble str span create question 查找 输出 last
原文地址:https://www.cnblogs.com/guoyu1/p/12244709.html