Write an UPDATE statement that modifies the invoice you added in exercise 4. This statement should change the credit_total column so it's 10% of the invoice_total column, and it should change the payment_total column so the sum of the payment_total and credit_total columns are equal to the invoice_total column.

Respuesta :

UPDATE invoicesSET credit_total = invoice_total * 0.1, payment_total = invoice_total - credit_totalWHERE invoice_id = 115

The UPDATE statement that modifies the invoice is:

  • UPDATE invoices
  • SET credit_total = invoice_total * 0.1, payment_total = invoice_total - credit_total
  • WHERE invoice_id = 115

What is SQL?

This is an acronym that means Structured Query Language and is used to create and update databases.

From the complete information, there is an invoice and we are required to update the database and increase the total credit column, payment total, and credit total columns. The UPDATE statement is given above.

Read more about SQL here:

https://brainly.com/question/25694408

#SPJ9