Hello, i am looking to create an sql query or an sql view that calculates a Target Value that increases throughout the year depending on what month you are in.
For example:-
The year start date is 2018-07-01 - there has currently been 8 days elapsed.
In July i want each day to have a value of 220
In August i want each day to have a value of 148
In September i want each day to have a value of 263
and so on through to next June
So, depending on what day we are on it will be the sum of the previous days for the right month..
I hope this helps?
Can anyone advise?
Many thanks
Brian
For example:-
The year start date is 2018-07-01 - there has currently been 8 days elapsed.
In July i want each day to have a value of 220
In August i want each day to have a value of 148
In September i want each day to have a value of 263
and so on through to next June
So, depending on what day we are on it will be the sum of the previous days for the right month..
I hope this helps?
Can anyone advise?
Many thanks
Brian