经典数据库题
摘要:
一、按部门名称查询出员工的人数大于等于100的语句.(员工:emp_employee, 部门名称: department,员工姓名chnalias.)SELECT departrnent FROM emp_employee GROUP BY departrnent HAVING COUNT(*) >=100二、把员工的姓名、性别和年龄显示出来。(员工表emp_employee, 员工姓名:chnalias,年龄age,性别:gender。性别表:pub_gendar_info,性别名称:smpalias,与员工表的性别关SELECT e.chnalias,g.smpalias,e.age 阅读全文
posted @ 2013-12-30 18:42 wcq 阅读(317) 评论(0) 推荐(0) 编辑