查询分数在80~90范围内的学生的学号、姓名、分数

查询分数在80~90范围内的学生的学号、姓名、分数

数据库:studentsdb
共有三个表
表1:curriculum
表2:grade
表3:student_info

image

image
image

SQL语句:
select distinct grade.学号,student_info.姓名,grade.分数
from student_info,grade
where grade.学号=student_info.学号 and 分数>80 and 分数<90

posted @ 2021-11-11 18:31  小码同学kki  阅读(4279)  评论(0编辑  收藏  举报