Try running:
SELECT Invoice.CustomerRefFullName, Invoice.RefNumber, InvoiceLinkedTxn.TxnID, InvoiceLinkedTxn.LinkedTxnTxnType, InvoiceLinkedTxn.LinkedTxnTxnID, InvoiceLinkedTxn.LinkedTxnTxnDate as Date, InvoiceLinkedTxn.LinkedTxnRefNumber as Number, InvoiceLinkedTxn.LinkedTxnAmount as Amount, InvoiceLinkedTxn.BalanceRemaining as Balance, SalesOrder.DueDate as PromisedDate, Invoice.TxnDate as Shipped, {fn CONVERT(Invoice.TxnDate, SQL_DATE)} - {fn CONVERT(SalesOrder.DueDate, SQL_DATE)} as DaysLate from Invoice NOSYNC, InvoiceLinkedTxn NOSYNC, SalesOrder NOSYNC where Invoice.TxnID=InvoiceLinkedTxn.TxnID and InvoiceLinkedTxn.LinkedTxnTxnID=SalesOrder.TxnID and Invoice.TxnDate >= {d'2008-06-01'} and Invoice.TxnDate <= {d'2008-06-30'} and (Invoice.TxnDate - SalesOrder.DueDate > 0) order by Invoice.CustomerRefFullName
Note: If you don't see recent information, you can resync the optimized tables by running:
sp_optimizeupdatesync Invoice
sp_optimizeupdatesync InvoiceLinkedTxn
sp_optimizeupdatesync SalesOrder |