A
Andy79
Hi,
I have setup 2 separate queries, but would really rather show all the
data in a single query. However i am unsure how to specify a different
"where" clause for each item i want to count.
Is it possible to write this as 1 single query?
here are the queries
1
SELECT Format$([Conferences].[StartDate],'yyyy-mm') AS [StartDate By
Month], Count(Conferences.Conference_Title) AS CountOfConference_Title
FROM Conferences INNER JOIN [CR Commissioning] ON
Conferences.Conference_ID = [CR Commissioning].Conference_ID
WHERE (((Conferences.Commission) Is Not Null))
GROUP BY Format$([Conferences].[StartDate],'yyyy-mm');
2
SELECT Format$([Conferences].[StartDate],'yyyy-mm') AS [StartDate By
Month], Count([CR Commissioning].[AU Agreed]) AS [CountOfAU Agreed]
FROM Conferences INNER JOIN [CR Commissioning] ON
Conferences.Conference_ID = [CR Commissioning].Conference_ID
WHERE ((([CR Commissioning].[CM Status])="agreed"))
GROUP BY Format$([Conferences].[StartDate],'yyyy-mm');
Regards
Andy
I have setup 2 separate queries, but would really rather show all the
data in a single query. However i am unsure how to specify a different
"where" clause for each item i want to count.
Is it possible to write this as 1 single query?
here are the queries
1
SELECT Format$([Conferences].[StartDate],'yyyy-mm') AS [StartDate By
Month], Count(Conferences.Conference_Title) AS CountOfConference_Title
FROM Conferences INNER JOIN [CR Commissioning] ON
Conferences.Conference_ID = [CR Commissioning].Conference_ID
WHERE (((Conferences.Commission) Is Not Null))
GROUP BY Format$([Conferences].[StartDate],'yyyy-mm');
2
SELECT Format$([Conferences].[StartDate],'yyyy-mm') AS [StartDate By
Month], Count([CR Commissioning].[AU Agreed]) AS [CountOfAU Agreed]
FROM Conferences INNER JOIN [CR Commissioning] ON
Conferences.Conference_ID = [CR Commissioning].Conference_ID
WHERE ((([CR Commissioning].[CM Status])="agreed"))
GROUP BY Format$([Conferences].[StartDate],'yyyy-mm');
Regards
Andy