Question: SQL payment_date does not exist code : SELECT invoice_number, invoice_date, payment_date (invoice_total - payment_total - credit_total) as 'balance_due' from invoices WHERE payment_date IS NOT NULL;

SQL payment_date does not exist

code :

SELECT invoice_number, invoice_date, payment_date (invoice_total - payment_total - credit_total) as 'balance_due' from invoices WHERE payment_date IS NOT NULL;

Table :

payment_date is in the invoices table so why would this code not work?

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!