I have a query that runs as intended in SQL Server 2000 Query Analyzer. I am trying to export it to an MS Access Query, but can't seem to narrow down the syntax for this subquery. Can someone please assist me?
FYI, this code selects the latest action performed on an Invoice, i.e. ONE Invoice can have MANY Actions.
Code:
SELECT dbo.Invoices.InvoiceID,
dbo.Actions.ActionDT
FROM dbo.Invoices INNER JOIN
dbo.Actions ON dbo.Invoices.InvoiceID = dbo.Actions.InvoiceID
WHERE (dbo.Actions.ActionDT =
(select max(t1.ActionDT)
from dbo.Actions t1
where t1.InvoiceID = Actions.InvoicesID))