Changes between Version 4 and Version 5 of UC3001


Ignore:
Timestamp:
09/09/26 13:07:16 (29 hours ago)
Author:
216009
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UC3001

    v4 v5  
    12121. Student logs into the system and selects “Enroll in Subject.”
    1313
    14 2. System displays available subjects and the professors teaching them at the student's faculty:
     142. System displays available subjects offered by the student's faculty and the professors assigned to teach them:
    1515{{{
    1616SELECT 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
    1717FROM Subject s
    18 JOIN Professor p ON p.Faculty_Id = s.Faculty_Id
     18JOIN Teach t ON t.Subject_Id = s.Id
     19JOIN Professor p ON p.Id = t.Professor_Id
    1920JOIN Student st ON st.Faculty_Id = s.Faculty_Id
    2021WHERE st.Id = :student_id;
     
    31325. If not enrolled, system inserts the enrollment record:
    3233{{{
    33 INSERT INTO Student_Subject (Ss_Id, Student_Id, Subject_Id, Professor_Id, Status, Enrollment_Date, Absences_Count)
     34INSERT INTO Student_Subject (Ss_Id, Student_Id, Subject_Id, Professor_Id, Status, Enrollment_Date, Abesense_Count)
    3435VALUES (:ss_id, :student_id, :subject_id, :professor_id, 'Enrolled', :enrollment_date, 0);
    3536}}}