SQL how to convert row with date range to many rows with each date
问题 If I have a table that looks like this begin date end date data 2013-01-01 2013-01-04 7 2013-01-05 2013-01-06 9 How can I make it be returned like this... date data 2013-01-01 7 2013-01-02 7 2013-01-03 7 2013-01-04 7 2013-01-05 9 2013-01-06 9 One thing I was thinking of doing is to have another table that just has all the dates and then join the table with just dates to the above table using date>=begin date and date<=end date but that seems a little clunky to have to maintain that extra