I have two queries which I want to join together. Unionoption will not work as I want the values to be displayed in different fields. The 1st query is
SELECT Outage.DISTRICT, Count(Outage.DISTRICT) AS CountOfDISTRICT
FROM Outage LEFT JOIN [Site ID gets generated] ON Outage.[Site ID]=[Site ID gets generated].[Site ID]
GROUP BY Outage.DISTRICT;
The 2nd query is
SELECT Outage.DISTRICT, Count(Outage.[Site ID]) AS [CountOfSite ID]
FROM Outage
GROUP BY Outage.DISTRICT;
I tried the below code but it is giving syntax error (missing operator) in the 1st query
SELECT Outage.DISTRICT,
(SELECT Count(Outage.[Site ID]) AS [CountOfSite ID] FROM Outage),
(SELECT Count(Outage.DISTRICT) AS CountOfDISTRICT FROM Outage LEFT JOIN [Site ID gets generated] ON Outage.[Site ID]=[Site ID gets generated].[Site ID])
GROUP BY Outage.DISTRICT;
It would be very helpful if answer is also given with an explanation, as I am quite new to access and trying to learn it from scratch.