I have a report to be created will need to look like:
Date Hours Date Hours Date Hours
Training Course #1 02/01 2 05/20 2 08/20 2
Training Course #1 04/01 1 05/10 1 04/20 1
The data comes out of an activity table in sequential record format by date and a lookup table for the training course types.
My SQL query so far looks like:
SELECT frs_codes.parent_code_id, frs_codes.code_id, frs_codes.code AS course, frs_employee_activity.employee_id, Format([start_date],"mm/dd" AS courseDate, DateDiff("h",[start_time],[stop_time]) AS courseHours
FROM frs_activity RIGHT JOIN (frs_employee_activity RIGHT JOIN frs_codes ON frs_employee_activity.training_id = frs_codes.code_id) ON frs_activity.id = frs_employee_activity.activity_id;
The query also selects the employee_id so training records can be selected for a particular employee in a given year.
How can I set up this report to look this way (with dates and hours displayed horizontally), either by writing a query or through formatting the report in a certain way? I am stumped!
Date Hours Date Hours Date Hours
Training Course #1 02/01 2 05/20 2 08/20 2
Training Course #1 04/01 1 05/10 1 04/20 1
The data comes out of an activity table in sequential record format by date and a lookup table for the training course types.
My SQL query so far looks like:
SELECT frs_codes.parent_code_id, frs_codes.code_id, frs_codes.code AS course, frs_employee_activity.employee_id, Format([start_date],"mm/dd" AS courseDate, DateDiff("h",[start_time],[stop_time]) AS courseHours
FROM frs_activity RIGHT JOIN (frs_employee_activity RIGHT JOIN frs_codes ON frs_employee_activity.training_id = frs_codes.code_id) ON frs_activity.id = frs_employee_activity.activity_id;
The query also selects the employee_id so training records can be selected for a particular employee in a given year.
How can I set up this report to look this way (with dates and hours displayed horizontally), either by writing a query or through formatting the report in a certain way? I am stumped!