Skip to content
Snippets Groups Projects
Commit 08847b42 authored by PavelBegunkov's avatar PavelBegunkov
Browse files

Изменена процедура GetStudentsForDiscipline.

parent a294282f
Branches
Tags
No related merge requests found
......@@ -679,7 +679,7 @@ BEGIN
)
LIMIT 1;
RETURN mID;
RETURN (mID>0);
END //
......@@ -713,7 +713,7 @@ BEGIN
INNER JOIN `disciplines` ON disciplines.ID = disciplines_teachers.DisciplineID
CROSS JOIN `lessons` ON lessons.DisciplineTeacherID = disciplines_teachers.ID
INNER JOIN `attending_groups` ON attending_groups.ID = lessons.AttendingGroupID
CROSS JOIN `students` ON InternalOccurrenceChecker(students.ID, attending_groups.ID) > 0
CROSS JOIN `students` ON InternalOccurrenceChecker(students.ID, attending_groups.ID) = TRUE
LEFT JOIN `attending_groups_pool` ON attending_groups_pool.AttendingGroupID = attending_groups.ID AND attending_groups_pool.StudentID = students.ID
INNER JOIN `study_groups` ON students.StudyGroupID = study_groups.ID
WHERE disciplines_teachers.TeacherID = TeacherID AND
......
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