SQL语法;检查与您的MySQL服务器版本相对应的手册以获取正确的语法,以在第1行的''附近使用
我试图将单行放在忽略空白的地方,但仍然显示出来!
下面写的实际代码
select first_name,last_name
from employees
where salary = (select min(salary)
from employees
where department_id IN (select distinct(department_id)
from departments);
答案 0 :(得分:1)
在末尾再添加一个闭合括号
select first_name
, last_name
from employees
where salary =
(select min(salary)
from employees
where department_id IN (select distinct(department_id) from departments)) ;