With a Items List and a Date Range I need a table with all Items in all days between dates. I think I should use a cross join, but I don't know how can I get the dates in range. Sample data:
Item
123456
546578
644821
Start Date: 2014-06-01
End Date: 2014-06-03
I need this result:
Date Item
2014-06-01 123456
2014-06-01 546578
2014-06-01 644821
2014-06-02 123456
2014-06-02 546578
2014-06-02 644821
2014-06-03 123456
2014-06-03 546578
2014-06-03 644821
Can anyone give-me some help? (It's in MS SQL Server)