salix/db/routines/vn/procedures/department_getHasMistake.sql

17 lines
265 B
SQL

DELIMITER $$
CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `vn`.`department_getHasMistake`()
BEGIN
/**
* Obtiene los sectores a los cuales les ponemos errores
*
*/
SELECT id, name
FROM department
WHERE hasToMistake <> FALSE;
END$$
DELIMITER ;