Changes between Version 4 and Version 5 of UC3001
- Timestamp:
- 09/09/26 13:07:16 (29 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UC3001
v4 v5 12 12 1. Student logs into the system and selects “Enroll in Subject.” 13 13 14 2. System displays available subjects and the professors teaching them at the student's faculty:14 2. System displays available subjects offered by the student's faculty and the professors assigned to teach them: 15 15 {{{ 16 16 SELECT s.Id AS Subject_Id, s.Name AS Subject_Name, p.Id AS Professor_Id, p.Name AS Professor_Name, p.Surname AS Professor_Surname 17 17 FROM Subject s 18 JOIN Professor p ON p.Faculty_Id = s.Faculty_Id 18 JOIN Teach t ON t.Subject_Id = s.Id 19 JOIN Professor p ON p.Id = t.Professor_Id 19 20 JOIN Student st ON st.Faculty_Id = s.Faculty_Id 20 21 WHERE st.Id = :student_id; … … 31 32 5. If not enrolled, system inserts the enrollment record: 32 33 {{{ 33 INSERT INTO Student_Subject (Ss_Id, Student_Id, Subject_Id, Professor_Id, Status, Enrollment_Date, Ab sences_Count)34 INSERT INTO Student_Subject (Ss_Id, Student_Id, Subject_Id, Professor_Id, Status, Enrollment_Date, Abesense_Count) 34 35 VALUES (:ss_id, :student_id, :subject_id, :professor_id, 'Enrolled', :enrollment_date, 0); 35 36 }}}
