Given the data table below, how can you show the score for these date range: 3/10 to 3/12?
The formula for score is today's score=(today's avg5daysprice *2.15)/ yesterday's score. For example for 3/10 score = (126.11*2.15)/10.36
The data lives in both Sql server and mysql.
symbol tdate price avg5daysprice score
-----------------------------------------------
aapl 3/9/2015 127.14 126.6, 10.36
aapl 3/10/2015 125.32 126.11 null
aapl 3/11/2015 128.15 127.25 null
aapl 3/12/2015 124.48 125.66 null