Hello,
I have two queries. One query is my large query connecting the Parent (Issues) and Child (Action Plans) tables. This is the query that will give many action plans to one issue. This is the query that my report is hooked up to.
My second query is just pulling in the MAX AP Target Date. Because there can be multiple AP's for one Issue; we just want to know the max date associated with each issue.
SELECT Max(tbl_ACTION_PLANS.[Action Plan Target Date]) AS [Final AP Target Date], tbl_ACTION_PLANS.[Issue ID]
FROM tbl_ACTION_PLANS
GROUP BY tbl_ACTION_PLANS.[Issue ID];
Is there a way to put that SQL into my big query, instead of having two queries? I am trying o keep this database as simple and clean as possible.
I have two queries. One query is my large query connecting the Parent (Issues) and Child (Action Plans) tables. This is the query that will give many action plans to one issue. This is the query that my report is hooked up to.
My second query is just pulling in the MAX AP Target Date. Because there can be multiple AP's for one Issue; we just want to know the max date associated with each issue.
SELECT Max(tbl_ACTION_PLANS.[Action Plan Target Date]) AS [Final AP Target Date], tbl_ACTION_PLANS.[Issue ID]
FROM tbl_ACTION_PLANS
GROUP BY tbl_ACTION_PLANS.[Issue ID];
Is there a way to put that SQL into my big query, instead of having two queries? I am trying o keep this database as simple and clean as possible.