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

fix

parent f3faf7df
Branches
Tags
No related merge requests found
......@@ -981,9 +981,7 @@ END //
DROP PROCEDURE IF EXISTS GetDisciplineInfoByID//
CREATE PROCEDURE `GetDisciplineInfoByID`( IN `DiscID` INT,
IN `DepID` INT,
IN `FacultyID` INT )
CREATE PROCEDURE `GetDisciplineInfoByID`( IN `DiscID` INT )
NO SQL
BEGIN
......@@ -995,15 +993,14 @@ BEGIN
disciplines.SemesterID,
subjects.ID AS 'SubjectID',
subjects.Name AS 'SubjectName',
subjects.Abbr AS 'SubjectAbbr'
subjects.Abbr AS 'SubjectAbbr',
departments.ID AS 'DepID',
departments.Name AS 'DepName',
departments.FacultyID AS 'FacultyID'
FROM `disciplines`
INNER JOIN `subjects` ON subjects.ID = disciplines.SubjectID
INNER JOIN `departments` ON departments.ID = disciplines.DepartmentID
WHERE ( DiscID = 0 OR disciplines.ID = DiscID) AND
( DepartmentID = 0 OR disciplines.DepartmentID = DepartmentID ) AND
( FacultyID = 0 OR departments.FacultyID = FacultyID);
WHERE disciplines.ID = DiscID;
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