mirror of
https://github.com/opelly27/WinStudentGoalTracker.git
synced 2026-05-20 02:57:36 +00:00
latest
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
DELIMITER ;;
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `sp_Student_GetByUserAndProgram`(
|
||||
IN p_id_user CHAR(36),
|
||||
IN p_id_program CHAR(36)
|
||||
)
|
||||
BEGIN
|
||||
SELECT
|
||||
s.id_student,
|
||||
s.id_program,
|
||||
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
|
||||
AND s.id_program = p_id_program
|
||||
ORDER BY s.id_student;
|
||||
END;;
|
||||
DELIMITER ;
|
||||
Reference in New Issue
Block a user