1. 按名字查找
Select * from list where name=’’;
2. 按薪水大于5000查找
Select * from list where salary>5000;
3. 部门人数
Select dept_id,count(*) as total from list group by dept_id;
4. 部门平均薪资
Select dept_id,avg(salary) from list group by dept_id;
5. 描述为空的
Select * from list where description is null;
6. 每个部门女员工薪水最大值
Select dept_id,max(salary) from list where gender=’F’ group by dept_id ;
7. 名字以l开头的
Select * from list where name like ‘l%’;