Hi guys
So here's the deal. I have got 2 tables. "JOBCARD" & "JOBCARD_DETAIL"
JOBCARD contains all detail relevant to a jobcard header eg. Customer, Date, Technician etc
JOBCARD DETAIL contains the lines with "work done", "price", "qty" and "line total".
I want to create a view/table/procedure that will give me a breakdown By Technician, Per Month, Total Sales
The total sales needs to be calulated by Summing "Line total" in JOBCARD_DETAIL for given month per technician.
I need to use the resulting table/view/procedure to populate a Line Graph Report.
Just to be clear the results should look something like:
Piet | Jan 2015 | 5000
Koos | Jan 2015 | 6500
Piet | Feb 2015 | 2455
Koos | Feb 2015 | 3478
And so on...
Any help will be greatly appreciated.
And if you are wondering, this is just a pet project that I started to delve into SQL & WinForms.
So far its going great, but the reporting part has got me a bit stumped.
So here's the deal. I have got 2 tables. "JOBCARD" & "JOBCARD_DETAIL"
JOBCARD contains all detail relevant to a jobcard header eg. Customer, Date, Technician etc
JOBCARD DETAIL contains the lines with "work done", "price", "qty" and "line total".
I want to create a view/table/procedure that will give me a breakdown By Technician, Per Month, Total Sales
The total sales needs to be calulated by Summing "Line total" in JOBCARD_DETAIL for given month per technician.
I need to use the resulting table/view/procedure to populate a Line Graph Report.
Just to be clear the results should look something like:
Piet | Jan 2015 | 5000
Koos | Jan 2015 | 6500
Piet | Feb 2015 | 2455
Koos | Feb 2015 | 3478
And so on...
Any help will be greatly appreciated.
And if you are wondering, this is just a pet project that I started to delve into SQL & WinForms.
So far its going great, but the reporting part has got me a bit stumped.