案例: 首先执行子查询。向主查询中的having子句返回结果。 案例:需求:查询最低工资大于110号部门最低工资的部门id和其最低工资SELECT department_id,MIN(salary)FROM employeesWHERE department_id IS NOT NULLGROUP BY department_idHAVING MIN(salary) > ( SELECT MIN(salary) FROM employees WHERE department_id = 110 );