Could you know that how to optimize the RA query below? 急!πSID,Address,Phone(σCourseNo=‘CCTV6730 ((Course 并 Enrol) 并 Enrol.SID=Student.SID Student))
在(Course 并 Enrol) 可以将后面需要用到的字段,比如CourseNo、SID从Enrol先选择出来,然后作为字表再跟Student表进行并操作,这样可以减少前两步并操作产生的字表大小。