Question: 7. Now, you will create a trigger to run after INSERTS and UPDATES on the customers table to log customers with birthdates showing that they

7. Now, you will create a trigger to run after
7. Now, you will create a trigger to run after INSERTS and UPDATES on the customers table to log customers with birthdates showing that they are not yet 18 years of age. Firstly, review the "Tutorial: Creating a Trigger that Logs Table Changes" example at https://docs.oracle.com/database/121/TDDDG/tdddg_triggers.htm#TDDDG50000 7.1. Here are the details for your trigger: 7.1.1. Use the construct "trunc(months_between(sysdate, birthdate)/12)" to determine the age in years. If they are currently under 18, put an entry in the "UNDER18_CUSTOMERS" table

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!