I am having difficulties to combine each of the 2 queries below. I want the final resulte to have 3 columns of data when executed, I think. #1 = weeknumber, #2 = SumOfOvertime2010 , #3 = SumOfOvertime2011. I have tried a union query but end up with only two columns of data. Keep in mind that 2010 has 52 weeks of data and that 2011 only has 19 weeks of data.
I am trying to create one bar graph in Access 2003 to compare the amount of overtime per year and week. Each of these queries works to create an individual report, but I want to display this data in a single report.
Thanks for any and all suggestions and assistance.
SELECT tbl_weekly_2010.WeekNumber, Sum(tbl_weekly_2010.Overtime) AS SumOfOvertime2010
FROM tbl_weekly_2010
GROUP BY tbl_weekly_2010.WeekNumber
HAVING (((tbl_weekly_2010.WeekNumber)>0));
SELECT tbl_weekly_2011.WeekNumber, Sum(tbl_weekly_2011.Overtime) AS SumOfOvertime2011
FROM tbl_weekly_2011
GROUP BY tbl_weekly_2011.WeekNumber
HAVING (((tbl_weekly_2011.WeekNumber)>0));
I am trying to create one bar graph in Access 2003 to compare the amount of overtime per year and week. Each of these queries works to create an individual report, but I want to display this data in a single report.
Thanks for any and all suggestions and assistance.
SELECT tbl_weekly_2010.WeekNumber, Sum(tbl_weekly_2010.Overtime) AS SumOfOvertime2010
FROM tbl_weekly_2010
GROUP BY tbl_weekly_2010.WeekNumber
HAVING (((tbl_weekly_2010.WeekNumber)>0));
SELECT tbl_weekly_2011.WeekNumber, Sum(tbl_weekly_2011.Overtime) AS SumOfOvertime2011
FROM tbl_weekly_2011
GROUP BY tbl_weekly_2011.WeekNumber
HAVING (((tbl_weekly_2011.WeekNumber)>0));