Hi
How can I modify this query showing the results of 3 months data :
SELECT District.Id, District.Name, Data_SDP.[First Date of 3month period], Format$([First Date of 3month period],"\Qq yyyy",0,0) AS TreMonth, Sum(Data_SDP.Mg3) AS [Low Dose], Sum(Data_SDP.Mcv3) AS Pop, Sum(Data_SDP.Depo3) AS Depot, Sum(Data_SDP.DIU3) AS IUD, Sum(Data_SDP.Cn3) AS Apples
FROM District INNER JOIN Data_SDP ON District.Id=Data_SDP.Ref_District
GROUP BY District.Id, District.Name, Data_SDP.[First Date of 3month period], Format$([First Date of 3month period],"\Qq yyyy",0,0)
ORDER BY District.Emer, Data_SDP.[First Date of 3month period];
to a query showing 6month period date.
Regards
How can I modify this query showing the results of 3 months data :
SELECT District.Id, District.Name, Data_SDP.[First Date of 3month period], Format$([First Date of 3month period],"\Qq yyyy",0,0) AS TreMonth, Sum(Data_SDP.Mg3) AS [Low Dose], Sum(Data_SDP.Mcv3) AS Pop, Sum(Data_SDP.Depo3) AS Depot, Sum(Data_SDP.DIU3) AS IUD, Sum(Data_SDP.Cn3) AS Apples
FROM District INNER JOIN Data_SDP ON District.Id=Data_SDP.Ref_District
GROUP BY District.Id, District.Name, Data_SDP.[First Date of 3month period], Format$([First Date of 3month period],"\Qq yyyy",0,0)
ORDER BY District.Emer, Data_SDP.[First Date of 3month period];
to a query showing 6month period date.
Regards