I have a table that has part numbers with affectivity dates like so
Part 1 01/01/2003
Part 2 07/15/2004
Part 1 09/30/2005
Part 2 11/26/2006
Part 1 12/15/2007
I need to find all the Parts sales for each part between the first effectively date and the next effectively date and then the sales between the second effectively date and the third date and then between the third date and that date plus 36 months. The last date in the table always has an end date of 36 months from that date while previous dates have and end date of the next date in the table for that part.
Any suggestions?
Part 1 01/01/2003
Part 2 07/15/2004
Part 1 09/30/2005
Part 2 11/26/2006
Part 1 12/15/2007
I need to find all the Parts sales for each part between the first effectively date and the next effectively date and then the sales between the second effectively date and the third date and then between the third date and that date plus 36 months. The last date in the table always has an end date of 36 months from that date while previous dates have and end date of the next date in the table for that part.
Any suggestions?
Comment