I have a SQL table formatted like the following:
8/1/2012 0.111
8/2/2012 0.222
8/5/2012 0.333
.
.
.
I want to run a query that will get the average value in the second column over a specified date range. For dates that do not exist (8/3/2012 and 8/4/2012 in the above table), I want to use the last known value (0.222) for the missing date. How can I go about doing this?