33. 查询成绩比该课程平均成绩低的同学的成绩表. select * from score a where a.degree between 0 and( select avg(degree) from score b where a.cno=b.cno ) 34. 查询所有任课教师的Tname和Depart. select tname,depart from teacher where tno in( select tno from course ) 35 . 查询所有未讲课的教师的Tna
1. 数据说明 (1) student表 hive> select * from student; # 学生ID 学生姓名 性别 年龄 所在系 # sid sname sex age dept 95002 Aiden female 19 IS 95017 Jacob female 18 IS 95018 Ethan female 19 IS 95013 Matthew male 21 CS 95014 Nicholas female 19 CS ...... (2) course表 hive>