Hello friends I have a big question I'm doing a project of maintenance requests and in the user admin can give management and departments where these two tables have relation in id_gerencia the department table consists of name, apartment_id, management_id, status and the management table is composed of Id_gerencia, nombre_gerencia and estatus, now I want that I can only cancel the management as long as I do not have a department with status 1 as I do?