Changes between Version 2 and Version 3 of UC2002


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

--

Legend:

Unmodified
Added
Removed
Modified
  • UC2002

    v2 v3  
    33**Initiating actor:** Professor
    44
    5 **Other actors:** Student
     5**Other actors:** None
    66
    77**Description:**
    8 A professor becomes an academic advisor to a student for a specific period.
     8A professor records an academic advising relationship with a student for a specific time period.
    99
    1010**Scenario:**
    1111
    12 1. Professor selects “Start Advising Student”
     121. Professor selects “Start Advising Student”.
    1313
    14 2. System shows list of students in professor’s faculty:
     142. System shows a list of students belonging to the same faculty as the professor:
    1515{{{
    1616SELECT st.Id, st.Name, st.Surname
    1717FROM Student st
    18 JOIN Faculty f ON st.Faculty_Id = f.Id
    19 JOIN Professor p ON p.Faculty_Id = f.Id
     18JOIN Professor p ON p.Faculty_Id = st.Faculty_Id
    2019WHERE p.Id = :professor_id;
    2120}}}
    2221
    23 3. Professor selects student and enters advising dates.
     223. Professor selects a student and enters the advising start and end dates.
    2423
    25 4. System inserts advising relationship:
     244. System inserts the advising record into the database:
    2625{{{
    2726INSERT INTO Advice(Student_Id, Professor_Id, Start_Date, End_Date)
    28 VALUES (:student_id, :professor_id, CURRENT_DATE, :end_date);
     27VALUES (:student_id, :professor_id, :start_date, :end_date);
    2928}}}
    3029
    31 5. System confirms advisor assignment.
     305. System confirms the advisor assignment.