Hi,
Below is simple representation a table_A.
table_A
Company Volume Begtime Endtime
-------------------------------------
ABC 1000 03/01/2009 03/05/2009
ABC 3500 03/05/2009 03/08/2009
My desired output are records that are duplicated for each of the 2 date ranges as shown below. Note the Company and Volume replicate for the date range. Any help would be appreciated. Thanks!
Desired SQL Output
Company Volume Date
---------------------------
ABC 1000 03/01/2009
ABC 1000 03/02/2009
ABC 1000 03/03/2009
ABC 1000 03/04/2009
ABC 3500 03/05/2009
ABC 3500 03/06/2009
ABC 3500 03/07/2009
Below is simple representation a table_A.
table_A
Company Volume Begtime Endtime
-------------------------------------
ABC 1000 03/01/2009 03/05/2009
ABC 3500 03/05/2009 03/08/2009
My desired output are records that are duplicated for each of the 2 date ranges as shown below. Note the Company and Volume replicate for the date range. Any help would be appreciated. Thanks!
Desired SQL Output
Company Volume Date
---------------------------
ABC 1000 03/01/2009
ABC 1000 03/02/2009
ABC 1000 03/03/2009
ABC 1000 03/04/2009
ABC 3500 03/05/2009
ABC 3500 03/06/2009
ABC 3500 03/07/2009