CREATE TRIGGER MATERIAS_CURSADAS_BI FOR MATERIAS_CURSADAS
ACTIVE BEFORE INSERT POSITION 0
AS
BEGIN
  NEW.NRO_MATERIA_CURSADA = GEN_ID(ORDEN_GEN, 1);
END
-----
CREATE TRIGGER MATERIAS_CORRELATIVAS_BI FOR MATERIAS_CORRELATIVAS
ACTIVE BEFORE INSERT POSITION 0
AS
BEGIN
  NEW.NRO_MATERIA_CORRELATIVA = GEN_ID(ORDEN_GEN, 1);
END
