I have the following case (excel format):
Date Start: 2016-01-01
Date Finish: 2016-12-31
Max Value: 96
Point Value: 0.0972
So If I change those parameter above, the record will change. For instance result below:
Date Value
-----------------------------
2016-01-01 96 --> This value is taken from MaxValue Parameter
2016-01-02 95.9 --> It requires a formula, which is (1 - PointValue) * Previous Value
2016-01-03 95.8
ff.
2016-12-31 67.3 --> Last Record, Based on Date Finish. The formula is the same
Does anyone have an idea how to do this in SQL Script?
Thank you.