Question: Write a SELECT statement that returns the following columns from the invoices table: invoice_number and invoice_total. Additionally, add the following two calculations: Add payment_total to

  1. Write a SELECT statement that returns the following columns from the invoices table: invoice_number and invoice_total. Additionally, add the following two calculations:
  • Add payment_total to credit_total and alias this as payment_credit_total
  • invoice_total minus payment_total and credit_total and alias this as balance_due

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!