dbo.CUSTOMER Columns mo CUST_NUM (PK, int, not null) E CUST_LNAME (varchar(30), null) E CUST_FNAME (varchar(30), null) E CUST_BALANCE (decimal(9,2), nu E CUST_ DOB (date, null) Keys Constraints...


code must be in SQL SSMS format


/*29. Write a trigger to update the CUST_BALANCE ON CUSTOMER TABLE when an invoice is deleted (INV_NUM) FROM INVOICE TABLE. Name
the trigger trg_updatecustbalance2.*/



TABLE STRUCTURE IS ATTACHED


dbo.CUSTOMER<br>Columns<br>mo CUST_NUM (PK, int, not null)<br>E CUST_LNAME (varchar(30), null)<br>E CUST_FNAME (varchar(30), null)<br>E CUST_BALANCE (decimal(9,2), nu<br>E CUST_ DOB (date, null)<br>Keys<br>Constraints<br>Triggers<br>Indexes<br>Statistics<br>dbo.EMP_1<br>dbo.EMP_2<br>dbo.EMPLOYEE<br>dbo.INVOICE<br>Columns<br>ro INV_NUM (PK, int, not null)<br>C- CUST_NUM (FK, int, null)<br>E INV_DATE (date, null)<br>E INV_AMOUNT (decimal(11,2), nul<br>Keys<br>Constraints<br>Triggers<br>Indexes<br>+<br>Statistics<br>dbo.JOB<br>dbo.PROJECT<br>Views<br>External Resources<br>囲回<br>田田<br>

Extracted text: dbo.CUSTOMER Columns mo CUST_NUM (PK, int, not null) E CUST_LNAME (varchar(30), null) E CUST_FNAME (varchar(30), null) E CUST_BALANCE (decimal(9,2), nu E CUST_ DOB (date, null) Keys Constraints Triggers Indexes Statistics dbo.EMP_1 dbo.EMP_2 dbo.EMPLOYEE dbo.INVOICE Columns ro INV_NUM (PK, int, not null) C- CUST_NUM (FK, int, null) E INV_DATE (date, null) E INV_AMOUNT (decimal(11,2), nul Keys Constraints Triggers Indexes + Statistics dbo.JOB dbo.PROJECT Views External Resources 囲回 田田

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here