Skip to content
Snippets Groups Projects
Commit 63057a82 authored by PavelBegunkov's avatar PavelBegunkov
Browse files

order

parent ce474b8c
Branches
Tags
No related merge requests found
......@@ -1574,9 +1574,11 @@ BEGIN
students.ID = disciplines_students.StudentID
LEFT JOIN `disciplines_groups` ON DisciplineID = disciplines_groups.DisciplineID AND
study_groups.ID = disciplines_groups.StudyGroupID
INNER JOIN `disciplines` ON DisciplineID = disciplines.ID
WHERE disciplines_groups.ID IS NOT NULL OR
disciplines_students.ID IS NOT NULL
ORDER BY grades.ID ASC,
ORDER BY grades.ID = disciplines.GradeID DESC,
grades.ID ASC,
study_groups.GroupNum ASC,
students.LastName ASC,
students.FirstName ASC,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment