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

...

parent 9da9a746
Branches
Tags
No related merge requests found
......@@ -174,13 +174,14 @@ END //
-- -------------------------------------------------------------------------------------------
DROP PROCEDURE IF EXISTS GetSubjects//
CREATE PROCEDURE `GetSubjects` ( )
CREATE PROCEDURE `GetSubjects` ( IN 'NameFilter' TEXT CHARSET utf8 )
NO SQL
BEGIN
SELECT subjects.ID AS 'SubjectID',
subjects.Name AS 'SubjectName',
subjects.Abbr AS 'SubjectAbbr'
FROM `subjects`
WHERE ( subjects.Name LIKE CONCAT(NameFilter,"%") )
ORDER BY subjects.Name ASC;
END //
......@@ -1046,6 +1047,7 @@ BEGIN
students.LastName AS 'StudentLast',
students.FirstName AS 'StudentFirst',
students.SecondName AS 'StudentSecond',
study_groups.ID AS 'GroupID',
study_groups.Grade AS 'GroupGrade',
study_groups.GroupNum AS 'GroupNum'
FROM `students`
......@@ -1228,6 +1230,7 @@ BEGIN
students.LastName,
students.FirstName,
students.SecondName,
study_groups.ID AS 'GroupID',
study_groups.Grade,
study_groups.GroupNum,
disciplines_students.Type AS 'Type'
......
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