找出C219、C220、C221的所有女生,输出所有字段,按学生id排序。
students,学生表
student_id | name | class_code | grade_code | birth_date | residence | gender |
---|---|---|---|---|---|---|
100611 | 姜建华 | C219 | S3 | 2009-01-15 | 城镇 | m |
102890 | 韩辉 | C223 | S3 | 2009-10-26 | 农村 | m |
105684 | 李丽丽 | C219 | S3 | 2009-03-28 | 城镇 | m |
110591 | 李华 | C223 | S1 | 2008-05-31 | 农村 | m |
110611 | 王桂珍 | C218 | S3 | 2008-06-04 | 城镇 | m |
scores,成绩表
分数可能为Null
student_id | subject | score | exam_date |
---|---|---|---|
358575 | 生物 | 29 | 2024-06-30 |
735011 | 语文 | 37 | 2024-03-30 |
597305 | 历史 | 67 | 2024-03-30 |
921856 | 数学 | 76 | 2024-04-27 |
455713 | 化学 | 77 | 2024-06-30 |
teachers
,教师表
如第一行,赵娇娇教学C218、C219、C217三个班级的语文,是C217班的班主任
teacher_id | name | subject | class_code | head_teacher | degree | graduate_date(毕业日期) | enter_date(入校日期) | gender | qualification(职称) | fir_degr(第一学历) | mst_degr(研究生学历) |
---|---|---|---|---|---|---|---|---|---|---|---|
t001 | 赵娇娇 | 语文 | C218C219C217 | C217 | master | 2010-06-30 | 2010-07-30 | f | Senior | 北京大学 | 北京大学 |
t002 | 任伊乐 | 语文 | C220C221C222C223C224 | C220 | master | 2010-06-30 | 2010-07-30 | f | Senior | 北京大学 | 清华大学 |
t003 | 李敏 | 数学 | C218C219C217 | C218 | master | 1994-06-30 | 1994-07-30 | f | Senior | 北京大学 | 复旦大学 |
t004 | 吕敏 | 数学 | C220C221C222 | C221 | phd | 1995-06-30 | 1995-07-30 | f | Senior | 北京大学 | 清华大学 |
t005 | 陈佳蔬 | 数学 | C223C224 | C223 | master | 2010-06-30 | 2010-07-30 | f | null | 北京大学 | 北京大学 |
university,大学信息表
name | is_985 | times_rnk(泰晤士2024全球排名) |
---|---|---|
King's College London | 0 | 34 |
National University of Singapore,NUS | 0 | 24 |
Singapore Polytechnic | 0 | null |
上海交通大学 | 1 | 113 |
北京大学 | 1 | 16 |
输出结果仅为示例,实际不止6行。
student_id | name | class_code | grade_code | birth_date | residence | gender |
---|---|---|---|---|---|---|
124285 | 杨丽 | C220 | S1 | 2009-12-21 | 农村 | f |
129739 | 蔡雪梅 | C219 | S1 | 2008-04-03 | 城镇 | f |
141772 | 宋博 | C221 | S3 | 2009-07-14 | 农村 | f |
157790 | 宋桂英 | C221 | S2 | 2009-03-15 | 农村 | f |
160602 | 李伟 | C220 | S2 | 2008-01-09 | 城镇 | f |
168016 | 齐瑜 | C219 | S2 | 2009-04-01 | 城镇 | f |
 点击下方空白区域即可查看参考答案
MySQL 8.0