Question: Problem 2 6 Create a MYSQL trigger named trg _ updatecustbalance to update the CUST _ BALANCE in the CUSTOMER table when a new invoice

Problem 26
Create a MYSQL trigger named trg_updatecustbalance to update the CUST_BALANCE in the CUSTOMER table when a new invoice record is entered. (Assume that the sale is a credit sale.) Whatever value appears in the INV_AMOUNT column of the new invoice should be added to the customer's balance. Test the trigger using the following new INVOICE record, which would add 225.40 to the balance of customer 1001:
INV_NUM CUST_NUM INV_DATE INV_AMOUNT
8005,1001,2022-04-27225.40
 Problem 26 Create a MYSQL trigger named trg_updatecustbalance to update the

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 Databases Questions!