i have a price table with product, priceDt, and price in it. the priceDt indicates the price of a product 'as of' that date. what i need to do is create a table with records for all of the products, for all of the dates from the products first priceDt up to today. in other words, the current table shows a new record only if the price has changed since the last priceDt. for example.
current table:
product priceDt price
--------------------------------------------
pen 01/01/2006 100
pen 01/06/2006 200
this means that the price of the pen was 100 from 01/01/06 through 01/05/2006, and i need to represent that in a new table. for example
new table:
product priceDt price
--------------------------------------------
pen 01/01/2006 100
pen 01/02/2006 100
pen 01/03/2006 100
pen 01/04/2006 100
pen 01/05/2006 100
pen 01/06/2006 200
thanks so much for your help,
bitt
current table:
product priceDt price
--------------------------------------------
pen 01/01/2006 100
pen 01/06/2006 200
this means that the price of the pen was 100 from 01/01/06 through 01/05/2006, and i need to represent that in a new table. for example
new table:
product priceDt price
--------------------------------------------
pen 01/01/2006 100
pen 01/02/2006 100
pen 01/03/2006 100
pen 01/04/2006 100
pen 01/05/2006 100
pen 01/06/2006 200
thanks so much for your help,
bitt