现在有一教学管理系统,具体的关系模式如下: Stu dent (no, name, sex , birthday , class) Teacher (no, name, sex , birthday , prof, depart) Cou rse (cno, cname, tno) Score (no, cno, degree) 其中表中包含如下数据: Cou rse表: Score 表: Stu dent 表: Teacher 表: 根据上面描述完成下面问题: (注意:注意保存脚本,尤其是DDL和DML,以便进行数据还原) DDL 1. 写出上述表的建表语句。 2. 给出相应的INSERT语句来完成题中给出数据的插入。 单表查询 3. 以class 降序输出stu dent 的所有记录(stu dent 表全部属性) 命令:select * from Student order by class desc; 4. 列出教师所在的单位depart(不重复)。 命令:select distinct depart from Teacher; 5. 列出stu dent 表中所有记录的name、sex 和 class 列 命令:select name,sex,class from Student; 6. 输出stu dent 中不姓王的同学的姓名。 命令:select name from Student except select name from Student where name like '王%';或 select name from Student where name not like '王%'; 7. 输出成绩为85 或86 或88 或在60-80 之间的记录(no,cno,degree) 命令:select no,cno,DEGREE from Score where degree=85 or degree=86 or degree=88 or degree between 60 and 80; 8. 输出班级为95001 或性别为‘女’ 的同学(stu dent 表全部属性) 命令:select * from Student where class=95001 or sex='女'; 9. 以cno 升序、degree 降序输出 score 的所有记录。(score 表全部属性) 命令:select * from Score order by cno asc,degree desc; 10. 输出男生人数及这些男生分布在多少个班级中 命令:select COUNT(*),count(distinct class) from Student where sex='男'; 11. 列出存在有85分以上成绩的课程编号。 命令:select distinct cno from Score where degree>85; 12. 输出 95001 班级的学生人数 命令:select COUNT(*) from Student where class=95001; 13. 输出‘3-105’号课程的平均分 命令:select avg(cast(degree as float)) from Score where cno='3-105'; 14. 输出stu dent 中最大和最小的 birthday 日期值 命令:select MAX(birthday),M...