Parameter | Details |
---|---|
@FromDate | The inclusive lower boundary of the generated date range. |
@ToDate | The inclusive upper boundary of the generated date range. |
Most experts seem to recommend creating a Dates table instead of generating a sequence on the fly. See http://dba.stackexchange.com/questions/86435/filling-in-date-holes-in-grouped-by-date-sql-data