S
SMT
I have a table that lists innovations and has a planneddate, completeddate,
and a directorate for each innovation. I need a query that will count the
total planneddate, and total completeddate by month for each directorate. I
have a query that seems to list all the pieces of data I need but its not
correct. Below is result from that query
A Oct 1 A Oct 1
A Oct 1 A Oct 1
Where I need to see
A Oct 2 2
SELECT qryPlannedDirTest.dir, qryPlannedDirTest.PlannedlCumulativeMonth,
qryPlannedDirTest.PlannedlCumulativeCount, qryActualDirTest.dir,
qryActualDirTest.ActualCumulativeMonth, qryActualDirTest.ActualCumulativeCount
FROM (tblMonth LEFT JOIN qryPlannedDirTest ON
tblMonth.month_name=qryPlannedDirTest.PlannedlCumulativeMonth) LEFT JOIN
qryActualDirTest ON tblMonth.month_name=qryActualDirTest.ActualCumulativeMonth
GROUP BY tblMonth.month_id, qryPlannedDirTest.dir,
qryPlannedDirTest.PlannedlCumulativeMonth,
qryPlannedDirTest.PlannedlCumulativeCount, qryActualDirTest.dir,
qryActualDirTest.ActualCumulativeMonth, qryActualDirTest.ActualCumulativeCount
ORDER BY tblMonth.month_id;
and a directorate for each innovation. I need a query that will count the
total planneddate, and total completeddate by month for each directorate. I
have a query that seems to list all the pieces of data I need but its not
correct. Below is result from that query
A Oct 1 A Oct 1
A Oct 1 A Oct 1
Where I need to see
A Oct 2 2
SELECT qryPlannedDirTest.dir, qryPlannedDirTest.PlannedlCumulativeMonth,
qryPlannedDirTest.PlannedlCumulativeCount, qryActualDirTest.dir,
qryActualDirTest.ActualCumulativeMonth, qryActualDirTest.ActualCumulativeCount
FROM (tblMonth LEFT JOIN qryPlannedDirTest ON
tblMonth.month_name=qryPlannedDirTest.PlannedlCumulativeMonth) LEFT JOIN
qryActualDirTest ON tblMonth.month_name=qryActualDirTest.ActualCumulativeMonth
GROUP BY tblMonth.month_id, qryPlannedDirTest.dir,
qryPlannedDirTest.PlannedlCumulativeMonth,
qryPlannedDirTest.PlannedlCumulativeCount, qryActualDirTest.dir,
qryActualDirTest.ActualCumulativeMonth, qryActualDirTest.ActualCumulativeCount
ORDER BY tblMonth.month_id;