Changes between Version 1 and Version 2 of UC2001


Ignore:
Timestamp:
06/15/26 14:15:30 (2 days ago)
Author:
216009
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UC2001

    v1 v2  
    33**Initiating actor:** Professor
    44
    5 **Other actors:** Student
     5**Other actors:** None
    66
    77**Description:**
    8 A professor records the final grade for a student enrolled in a subject.
     8A professor records the final grade for a student enrolled in a subject under their supervision.
    99
    1010**Scenario:**
     
    12121. Professor logs in and selects “Enter Grades.”
    1313
    14 2. System shows subjects the professor teaches:
     142. System shows students and subjects that this specific professor teaches:
    1515{{{
    16 SELECT sub.Id, sub.Name, st.Id AS Student_Id, st.Name, st.Surname
    17 FROM Subject sub
    18 JOIN Subject_Professor sp ON sp.Subject_Id = sub.Id
    19 JOIN Student_Subject ss ON ss.Subject_Id = sub.Id
    20 JOIN Student st ON st.Id = ss.Student_Id
    21 WHERE sp.Professor_Id = :professor_id;
     16SELECT sub.Id AS Subject_Id, sub.Name AS Subject_Name, st.Id AS Student_Id, st.Name, st.Surname
     17FROM Student_Subject ss
     18JOIN Subject sub ON ss.Subject_Id = sub.Id
     19JOIN Student st ON ss.Student_Id = st.Id
     20WHERE ss.Professor_Id = :professor_id;
    2221}}}
    2322
    24 3. Professor selects a student and enters the final grade.
     233. Professor selects a student/subject entry and enters the final grade.
    2524
    26 4. System updates the database:
     254. System updates the database with the grade and changes status to 'PASSED' (or 'FAILED' depending on the grade):
    2726{{{
    2827UPDATE Student_Subject
    29 SET Final_Grade = :grade, Status = 'COMPLETED'
    30 WHERE Student_Id = :student_id AND Subject_Id = :subject_id;
     28SET Final_Grade = :grade, Status = 'PASSED'
     29WHERE Student_Id = :student_id AND Subject_Id = :subject_id AND Professor_Id = :professor_id;
    3130}}}
    3231
    33 5. System confirms the update and allows professor to continue for other students.
     325. System confirms the update and allows the professor to continue grading other students.