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

fix #7

parent 535b30cf
Branches
Tags
No related merge requests found
......@@ -313,7 +313,7 @@ END //
DROP PROCEDURE IF EXISTS GetTeachersByDepartment//
CREATE PROCEDURE `GetTeachersByDepartment` ( IN `FacultyID` INT
CREATE PROCEDURE `GetTeachersByDepartment` ( IN `DepartmentID` INT
)
NO SQL
BEGIN
......@@ -322,12 +322,12 @@ BEGIN
teachers.FirstName AS 'TeacherFirst',
teachers.SecondName AS 'TeacherSecond',
job_positions.Name AS 'JobPositionName',
departments.ID AS 'DepartmentID',
departments.Name AS 'DepartmentName'
departments.ID AS 'DepID',
departments.Name AS 'DepName'
FROM `teachers`
INNER JOIN `departments` ON departments.ID = teachers.DepartmentID
INNER JOIN `job_positions` ON job_positions.ID = teachers.JobPositionID
WHERE departments.FacultyID = FacultyID;
WHERE departments.ID = DepartmentID;
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