Changes between Version 7 and Version 8 of UseCase2001Implementation
- Timestamp:
- 09/09/26 13:14:49 (31 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UseCase2001Implementation
v7 v8 20 20 Professor inputs a target Subject ID from the displayed list. 21 21 22 5. System lists all students currently enrolled in that chosen subject under this professor's instruction :22 5. System lists all students currently enrolled in that chosen subject under this professor's instruction (including the Ss_Id discriminator): 23 23 {{{ 24 SELECT s t.Id, st.Name, st.Surname24 SELECT ss.Ss_Id, st.Id AS Student_Id, st.Name, st.Surname 25 25 FROM Student st 26 26 JOIN Student_Subject ss ON st.Id = ss.Student_Id 27 27 WHERE ss.Subject_Id = ? AND ss.Professor_Id = ?; 28 28 }}} 29 Professor inputs the target Student ID .29 Professor inputs the target Student ID and Ss_Id. 30 30 31 31 6. System prompts the professor to provide a valid final grade value (constrained between 6 and 10). 32 7. System executes the parameterized SQL statement to persist the final grade and modify the completion status:32 7. System executes the parameterized SQL statement to persist the final grade using the full composite primary key and correct ENUM value: 33 33 {{{ 34 34 UPDATE Student_Subject 35 SET Final_Grade = ?, Status = 'P ASSED'36 WHERE Student_Id = ? AND Subject_Id = ? AND Professor_Id = ?;35 SET Final_Grade = ?, Status = 'Passed' 36 WHERE Student_Id = ? AND Subject_Id = ? AND Ss_Id = ?; 37 37 }}} 38 38 8. System displays a confirmation text message indicating that the grade was successfully assigned.
