查询在 "方东白" 入职之后的员工信息 (标量子查询)
时间: 2023-07-22 16:35:35 浏览: 93
好的,查询语句如下:
```
SELECT *
FROM tb_emp
WHERE hire_date > (
SELECT hire_date
FROM tb_emp
WHERE emp_name = '方东白'
)
```
这是一个使用标量子查询的查询语句,首先在子查询中查询出员工名称为“方东白”的入职日期,然后在主查询中使用该入职日期来查询所有入职时间在其之后的员工信息。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)