Changes between Version 2 and Version 3 of UC2002
- Timestamp:
- 06/15/26 14:15:38 (2 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UC2002
v2 v3 3 3 **Initiating actor:** Professor 4 4 5 **Other actors:** Student5 **Other actors:** None 6 6 7 7 **Description:** 8 A professor becomes an academic advisor to a student for a specificperiod.8 A professor records an academic advising relationship with a student for a specific time period. 9 9 10 10 **Scenario:** 11 11 12 1. Professor selects “Start Advising Student” 12 1. Professor selects “Start Advising Student”. 13 13 14 2. System shows list of students in professor’s faculty:14 2. System shows a list of students belonging to the same faculty as the professor: 15 15 {{{ 16 16 SELECT st.Id, st.Name, st.Surname 17 17 FROM Student st 18 JOIN Faculty f ON st.Faculty_Id = f.Id 19 JOIN Professor p ON p.Faculty_Id = f.Id 18 JOIN Professor p ON p.Faculty_Id = st.Faculty_Id 20 19 WHERE p.Id = :professor_id; 21 20 }}} 22 21 23 3. Professor selects student and enters advisingdates.22 3. Professor selects a student and enters the advising start and end dates. 24 23 25 4. System inserts advising relationship:24 4. System inserts the advising record into the database: 26 25 {{{ 27 26 INSERT INTO Advice(Student_Id, Professor_Id, Start_Date, End_Date) 28 VALUES (:student_id, :professor_id, CURRENT_DATE, :end_date);27 VALUES (:student_id, :professor_id, :start_date, :end_date); 29 28 }}} 30 29 31 5. System confirms advisor assignment.30 5. System confirms the advisor assignment.
