嗨,我需要帮助这个问题:
计算并显示每个代表的no&名称以及他们获得的学分与课程的代码,名称和&币。
delegate (StudentNumber,StudentName,Phone)
session (Code,Date,Room)
take (StudentNumber, CourseCode, Grade)
course (CourseCode, CourseName,CourseCredits,)
module (ModuleCode, ModuleName, Price,Credits,Course_Code(FK))
这是我到目前为止所拥有的:
SELECT no,name FROM delegate
INNER JOIN module,take
ON module.code = take.code
INNER JOIN course
ON CourseCredits = Credits
这就是我到目前为止所有的,任何帮助都会受到赞赏,我知道我必须使用子查询,但不太确定在哪里
答案 0 :(得分:0)
SELECT no,name FROM delegate
INNER JOIN take ON take.StudentNumber = delegate.StudentNumber
INNER JOIN module ON module.code = take.code
INNER JOIN course ON CourseCredits = Credits
有帮助吗?