Write an UPDATE statement that modifies the InvoiceCopy table. Change the PaymentDate to today’s date and the PaymentTotal to the balance due for each invoice with a balance due. Set today’s date with a literal date string, or use the GETDATE() function.

Respuesta :

Answer:

UPDATE invoicecopy

SET PaymentDate = GETDATE() ,

UPDATE invoicecopy

SET PaymentTotal = CreditTotal

WHERE (CreditTotal > 0)

Explanation: