CREATE TRIGGER ATTENDANCE_INSERTION_TRIGGER
ON course_enrollment
AFTER INSERT
AS
BEGIN
--insert **what just was inserted in course_enrollment** into course_schedule_attendance
END
GO
How do I refer to what just was inserted in course_enrollment ?
try this:
you could also do this in a single INSERT, without the trigger: