| Version 5 (modified by , 3 months ago) ( diff ) |
|---|
UseCase3001Implementation – Enroll in Subject
Initiating actor: Student
Other actors: None
Description: Student enrolls in a subject offered by their faculty and selects a specific professor teaching that course instance.
Scenario:
- System displays Student Menu.
- Student selects Enroll in Subject.
- System lists all students → Student selects their Student ID.
- System lists available subjects for the student's faculty:
SELECT s.Id, s.Name FROM Subject s JOIN Student st ON s.Faculty_Id = st.Faculty_Id WHERE st.Id = ?;
Student selects a Subject ID.
- System lists all available professors for the chosen subject:
SELECT p.Id, p.Name, p.Surname FROM Professor p JOIN Subject s ON p.Faculty_Id = s.Faculty_Id WHERE s.Id = ?;
Student selects a Professor ID.
- System checks if the student is already enrolled in this subject:
SELECT * FROM Student_Subject WHERE Student_Id = ? AND Subject_Id = ?;
- If not enrolled, system inserts the new enrollment record into the database:
INSERT INTO Student_Subject(Student_Id, Subject_Id, Professor_Id, Status, Enrollment_Date, Absences_Count) VALUES (?, ?, ?, 'PASSED', CURRENT_DATE, 0);
- System confirms successful enrollment.
Attachments (2)
- consultation_success.png (50.2 KB ) - added by 10 hours ago.
- consultation_form.png (29.7 KB ) - added by 10 hours ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.
