查詢分數在80~90范圍內的學生的學號、姓名、分數
數據庫:studentsdb
共有三個表
表1:curriculum
表2:grade
表3:student_info
SQL語句:
select distinct grade.學號,student_info.姓名,grade.分數
from student_info,grade
where grade.學號=student_info.學號 and 分數>80 and 分數<90
數據庫:studentsdb
共有三個表
表1:curriculum
表2:grade
表3:student_info
SQL語句:
select distinct grade.學號,student_info.姓名,grade.分數
from student_info,grade
where grade.學號=student_info.學號 and 分數>80 and 分數<90
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。