Question: 3. Modify the search expression for InvoiceDueDate from the solution for question 2. Rather than 30 days from today, return invoices due before the last

3. Modify the search expression for InvoiceDueDate from the solution for question 2. Rather than 30 days from today, return invoices due before the last day of the current month.

SQL Code: SELECT InvoiceNumber, (InvoiceTotal - CreditTotal) AS Balance, InvoiceDueDate FROM Invoices WHERE InvoiceDueDate < CONVERT(DATETIME, DATEADD(D, -1, GETDATE()), 120) AND (InvoiceTotal - CreditTotal) <> 0

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!