--上机练习3
SELECT StudentName, GradeName, Phone FROM dbo.Student S,dbo.Grade G WHERE S. GradeId=G. GradeId
SELECT GradeName,SubjectName, ClassHour FROM dbo.Subject J,dbo.Grade G WHERE J.GradeId=G. GradeId AND G.GradeId=1
SELECT StudentName,StudentResult, ExamDate FROM dbo.Student S,dbo.Result R WHERE S.StudentNo=R.StudentNo AND SubjectId=1
SELECT SubjectName,StudentResult, ExamDate FROM dbo.Subject j,dbo.Result R WHERE j.SubjectId=R.SubjectId AND StudentNo='s1101007'
SELECT S.StudentNo,SubjectName,StudentResult,ExamDate FROM dbo.Student S,dbo.Result R,dbo.Subject J WHERE S.StudentNo=R.StudentNo AND S.GradeId=J.GradeId