I have an SQL table formatted as follows:
8/1/2012 0.111
8/2/2012 0.222
8/5/2012 0.333
.
.
.
I want to run a query that gets the average in the second column over a specific date range. For dates that don't exist (8/3/2012 and 8/4/2012 in the table above), I want to use the last known value (0.222) for the missing date. How can i do this?
source
share