我想知道是否可以獲得關於我已經完成的關係代數的一些反饋,並且還有關於改進它的任何建議,如果您發現我的SQL有任何問題,您是否可以指出它。關係代數
SELECT CourseName
FROM Course
WHERE CourseNo = 6;
ΠCourseName(σCourseNo= 6(場))
SELECT CU.UnitNo
FROM C.Course, CU CourseUnit
WHERE C.CourseName = CU.CourseNo
AND C.CourseName = 'Research';
ΠUnitNo(CourseUnit(σCourseName= '研究'(場)))
SELECT U.UnitName
FROM S Student, SU StudentUnit, U Unit
WHERE S.StudentNo = SU.StudentNo
AND SU.UnitNo = U.UnitNo
AND S.StudentName = 'John Perry';
ΠUnitName(Unit(StudentUnit(σStudentName='John Perry'(Student))))
SELECT count(S.StudentNo) ResearchStudents
FROM C Course, S Student
WHERE C.CourseNo = S.CourseNo
AND C.CourseName = 'Research';
ΠResearchStudents((C)計數(StudentNo)(學生(σCourseName= '研究'(場))))
呃......什麼? – 2010-01-25 00:10:52