Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

new girl needs help creating weekly totals report

$
0
0

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_dateactual_comp_datemeters completedjob_type_name
20/11/2019 08:1514/11/2019 00:000Structures - Essential Maintenance
22/04/2020 10:2526/05/2020 11:170.5FW/CY Bitumas Reinstatement
22/04/2020 10:2526/05/2020 11:171FW/CY Bitumas Reinstatement
01/08/2018 11:2927/05/2020 12:416Kerb/Sett - Reset/Realign
23/12/2019 14:1528/05/2020 09:541SFurn - TS Cleaning


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>