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>
23.查询"张旭"教师任课的学生成绩. select * from score s where cno in ( select cno from course where tno in( select tno from teacher where tname = '张旭')) 24.查询选修某课程的同学人数多于5人的教师姓名. select tname from teacher where tno in ( select tno from course where cno in ( s