This commit is contained in:
ivan-pelly
2026-02-27 18:29:11 -08:00
parent 6de30bd77e
commit b6b058f05e
12 changed files with 32 additions and 26 deletions
@@ -7,14 +7,14 @@ BEGIN
SELECT
s.id_student,
s.id_program,
s.id_user,
s.identifier,
s.program_year,
s.enrollment_date,
s.expected_grad,
s.created_at
FROM student s
JOIN user_student us ON us.id_student = s.id_student
WHERE us.id_user = p_id_user
WHERE s.id_user = p_id_user
AND s.id_program = p_id_program
ORDER BY s.id_student;
END;;