bombplayer
Programmer
I have three tables tbl_Students, tbl_Enrolled and tbl_Classes. The tbl_Students and tbl_Enrolled have a one to one relationship. When a student is enrolled in a class in tbl_Classes, the ClassID field is placed in tbl_Enrolled to create a join between tbl_Enrolled and tbl_Classes.
I am trying to create a trigger to tell me when the ClassID field is updated in tbl_Enrolled but my problem is that I don't want all of the updates. I only want to fire the trigger when the class start time field of tbl_Classes equals say 8 a.m.
Maybe my thinking on this is backwards or something but how can I create a trigger on the tbl_Enrolled table when I am referencing another table?
I am trying to create a trigger to tell me when the ClassID field is updated in tbl_Enrolled but my problem is that I don't want all of the updates. I only want to fire the trigger when the class start time field of tbl_Classes equals say 8 a.m.
Maybe my thinking on this is backwards or something but how can I create a trigger on the tbl_Enrolled table when I am referencing another table?