西城110/linux高级作业(12.26)
2012-12-26 22:42
218 查看
Insert into niu values (1, ‘lilei’, ‘F’, ‘1’, ‘1987-10-20’, 3520.5, 13565489561, ‘beijing’, ‘wohendidiao’);
按姓名查找select * from niu where name=’zouying’;
查找薪水大于5000的 select count(*) from niu where salary>5000;
每个部门多少人
例子Select count(*) from niu where dept_id=1;
每个部门的平均薪水
例子 select avg (salary) from niu where dept_id=1;
描述为空的
Select * from niu where description is NULL;
每个部门女员工,薪水最大值
Select max(salary) from niu where gender=’f’ group by dept_id;
名字以L开头的用户
Select * from niu where name like ‘l%’;
按姓名查找select * from niu where name=’zouying’;
查找薪水大于5000的 select count(*) from niu where salary>5000;
每个部门多少人
例子Select count(*) from niu where dept_id=1;
每个部门的平均薪水
例子 select avg (salary) from niu where dept_id=1;
描述为空的
Select * from niu where description is NULL;
每个部门女员工,薪水最大值
Select max(salary) from niu where gender=’f’ group by dept_id;
名字以L开头的用户
Select * from niu where name like ‘l%’;
相关文章推荐
- megeedu Linux+Python高级运维班 3期 第六周作业
- megeedu Linux+Python高级运维班 3期 第四周作业
- megeedu Linux+Python高级运维班 3期 第二周作业
- megeedu Linux+Python高级运维班 3期 第三周作业
- megeedu Linux+Python高级运维班 3期 第六周作业
- megeedu Linux+Python高级运维班 3期 第一周作业
- linux运维实战练习-高级班-2015年10月18日-10月24日课程作业(练习)安排
- megeedu Linux+Python高级运维班 3期 第五周作业
- 20155304田宜楠-第三次作业:虚拟机的安装与Linux学习
- [Linux高级编程] Makefile简化版
- linux作业
- 马哥2016全新Linux+Python高端运维班第五周作业
- LINUX的一些高级命令笔记
- 武汉大学2013linux大作业
- linux驱动:[3]高级字符设备驱动之ioctl
- 【转】Linux netstat命令详解,高级面试必备
- 【linux高级程序设计】(第八章)进程管理与程序开发 2
- linux高级工具命令(一)strace
- LinuxC高级编程——线程间同步
- lnav:Linux 下一个基于控制台的高级日志文件查看器