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
Create a MYSQL trigger named trgupdatecustbalance to update the CUSTBALANCE in the CUSTOMER table when a new invoice record is entered. Assume that the sale is a credit sale. Whatever value appears in the INVAMOUNT 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 to the balance of customer :
INVNUM CUSTNUM INVDATE INVAMOUNT
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
