Skip to content
Snippets Groups Projects
Commit 4ab041f7 authored by PavelBegunkov's avatar PavelBegunkov
Browse files

fix

parent b1b685bd
Branches
Tags
No related merge requests found
......@@ -372,7 +372,8 @@ END //
DROP PROCEDURE IF EXISTS GetStudentsByGrade//
CREATE PROCEDURE `GetStudentsByGrade` ( IN `Grade` INT )
CREATE PROCEDURE `GetStudentsByGrade` ( IN `Grade` INT,
IN `FacultyID` INT )
NO SQL
BEGIN
SELECT DISTINCT students.ID AS 'StudentID',
......@@ -386,7 +387,9 @@ BEGIN
disciplines_students.Type AS 'Type'
FROM `students`
INNER JOIN `study_groups` ON students.StudyGroupID = study_groups.ID
WHERE study_groups.Grade = Grade
INNER JOIN `specializations` ON study_groups.SpecializationID = specializations.ID
WHERE study_groups.Grade = Grade AND
specializations.FacultyID = FacultyID
ORDER BY students.LastName ASC, students.FirstName ASC, students.SecondName ASC;
END //
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment