How can I convert the following SQL query into a report?
In particular, I don't know how to convert the WHERE portion of the query into a selection formula.
Here is the SQL query:
SELECT P1.CustID, J1.EntryDate, J1.ImplementationStage, C2.CallID
FROM Profile P1 JOIN CallLog C2 ON P1.CustID = C2.CustID
JOIN Journal J1 ON C2.CallID = J1.CallID
WHERE J1.EntryDate IN (
SELECT MAX(J2.EntryDate)
FROM Journal J2
WHERE J2.ImplementationStage IS NOT NULL
AND J2.ImplementationStage <> ''
AND J2.CallID = C2.CallID
)
In particular, I don't know how to convert the WHERE portion of the query into a selection formula.
Here is the SQL query:
SELECT P1.CustID, J1.EntryDate, J1.ImplementationStage, C2.CallID
FROM Profile P1 JOIN CallLog C2 ON P1.CustID = C2.CustID
JOIN Journal J1 ON C2.CallID = J1.CallID
WHERE J1.EntryDate IN (
SELECT MAX(J2.EntryDate)
FROM Journal J2
WHERE J2.ImplementationStage IS NOT NULL
AND J2.ImplementationStage <> ''
AND J2.CallID = C2.CallID
)