I have two tables: Hours & Incident
Hours
HoursDate FacilityCode Hours
Incident
IncidentDate FacilityCode LTI (Yes/No) field
How can I join these two tables on the facilitycode so that they are group together by Month on the Hours Table. In other words I want to display all Facility Hours, FacilityCode and any LTIs in that month or for a group of months when selected by the user. I can get the join to work ok for individual months but not for a group of months.
I tried Left Join on the Hours table but had trouble counting the LTI (Yes/No) field.
Hours
HoursDate FacilityCode Hours
Incident
IncidentDate FacilityCode LTI (Yes/No) field
How can I join these two tables on the facilitycode so that they are group together by Month on the Hours Table. In other words I want to display all Facility Hours, FacilityCode and any LTIs in that month or for a group of months when selected by the user. I can get the join to work ok for individual months but not for a group of months.
I tried Left Join on the Hours table but had trouble counting the LTI (Yes/No) field.