hi guys,
ive started trying to get back into SQL and really need some help (you will no doubt see me on here a lot)
I am trying to produce a report that shows the totals for the last 7 days using the below data.
I need to see:
1. total completed by job type name (if it has a date in the completed column this means it is completed)
2.total outstanding (any that are blank in the completed date column)
3.meters completed by job type
similar to a weekly sales report basically showing the last 7 days
any help you guys can give would be amazing x
the columns are as follows
thanks lucy x
| job_entry_date | actual_comp_date | meters completed | job_type_name |
| 20/11/2019 08:15 | 14/11/2019 00:00 | 0 | Structures - Essential Maintenance |
| 22/04/2020 10:25 | 26/05/2020 11:17 | 0.5 | FW/CY Bitumas Reinstatement |
| 22/04/2020 10:25 | 26/05/2020 11:17 | 1 | FW/CY Bitumas Reinstatement |
| 01/08/2018 11:29 | 27/05/2020 12:41 | 6 | Kerb/Sett - Reset/Realign |
| 23/12/2019 14:15 | 28/05/2020 09:54 | 1 | SFurn - TS Cleaning |