# 最小值练习 Joe 想要得到 employee 表 ```mysql create table employee ( id serial primary key, name varchar(256), dept varchar(256), salary decimal(12, 4) ); ``` 中每个部门工资最低的员工的工资信息,这条查询应该怎么写? ## 答案 ```mysql select dept, min(salary) from employee group by dept; ``` ## 选项 ### A ```mysql select dept, min(salary) from employee; ``` ### B ```mysql select dept, min(salary) from employee; ``` ### C ```mysql select dept, min(salary) from employee; ``` ### D ```mysql select sum(total) from orders having deal and unit_price > 1000; ```