Question: Modify the search expression for InvoiceDueDate from the previous solution. Rather than 30 days from today, return invoices due before the last day of the
Modify the search expression for InvoiceDueDate from the previous solution. Rather than 30 days from today, return invoices due before the last day of the current month.
This is what I have and I referred to it in the title as "Previous solution":
SELECT InvoiceNumber, (InvoiceTotal - PaymentTotal - CreditTotal) AS Balance, InvoiceDueDate FROM Invoices WHERE (InvoiceTotal - PaymentTotal - CreditTotal) > 0 and InvoiceDueDate < GETDATE() + 30;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
