Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started