
CREATE OR ALTER TRIGGER ALUMNOS_MATERIAS_BI FOR ALUMNOS_MATERIAS
ACTIVE BEFORE INSERT POSITION 0
AS
BEGIN
  NEW.NRO_ALUMNO = GEN_ID(ORDEN_GEN, 1);
END