Skip to content
Snippets Groups Projects
Commit 8b799e41 authored by PavelBegunkov's avatar PavelBegunkov
Browse files

condition improvment

parent 6aa69dd6
Branches
Tags
No related merge requests found
......@@ -1022,12 +1022,8 @@ BEGIN
( students.LastName LIKE CONCAT(Last,"%") ) AND
( students.FirstName LIKE CONCAT(First,"%") ) AND
( students.SecondName LIKE CONCAT(Second,"%") ) AND
( disciplines_students.Type = 'detach' OR
( disciplines_groups.ID IS NULL AND
( disciplines_students.Type IS NULL OR
disciplines_students.Type != 'attach'
)
)
( ( disciplines_students.Type IS NOT NULL AND disciplines_students.Type = 'detach' ) OR
( disciplines_groups.ID IS NULL AND disciplines_students.Type IS NULL )
)
ORDER BY study_groups.Grade ASC, study_groups.GroupNum ASC;
......
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