Manager can Archive enrollments before provided D

DELIMITER //
create procedure archiveEnrollmentsUntil(IN d
DATE)
BEGIN

insert into archenrollment
 select * from enrollment

where updatedON <= d;

END
//
DELIMITER ;