Create an INSTEAD OF trigger on INSERT Session Hours to enforce the rule that no
ID: 3757454 • Letter: C
Question
Create an INSTEAD OF trigger on INSERT Session Hours to enforce the rule that no tutor should work more than 60 hours in a month.
Follow steps if not sure.
1. Get the date from the INSERTED table.
2. Extract the month.
3. Create a variable for the total hours.
4. Assign to total the sum of each session for that month (assuming 30 minutes each).
5. Check to see if the sum > 60. 6. Check if it is output a message.
7. Otherwise complete the insert into the Session table.
Explanation / Answer
trigger on INSERT Session Hours
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.