Hi All,
I am trying to get all invoices from tables invoices_head & invoices line for the previous working day.
The script I have goes back one day which will be fine for everyday apart from monday. This script is to be inserted into a package to be run everyday.
SELECT *
FROM invoice_head INNER JOIN
invoice_lines ON invoice_head.Invoice_id=Invoice_lines.Invoice_id
WHERE (invoice_head.PaymentDate >= GETDATE() - 1)
I am trying to get all invoices from tables invoices_head & invoices line for the previous working day.
The script I have goes back one day which will be fine for everyday apart from monday. This script is to be inserted into a package to be run everyday.
SELECT *
FROM invoice_head INNER JOIN
invoice_lines ON invoice_head.Invoice_id=Invoice_lines.Invoice_id
WHERE (invoice_head.PaymentDate >= GETDATE() - 1)