psychoflea
Programmer
Hi, i'm trying to find the start date & end date for a range of like data for example
Turn this:
ProductNo Date Price
12345 10/7/10 £1.50
12345 11/7/10 £1.50
12345 12/7/10 £1.50
12345 13/7/10 £2.30
12345 14/7/10 £2.30
12345 15/7/10 £1.50
12345 16/7/10 £1.50
98765 10/7/10 £2.99
98765 10/7/10 £2.99
Into this:
ProductNo StartDate EndDate Price
12345 10/7/10 12/7/10 £1.50
12345 13/7/10 14/7/10 £2.30
12345 15/7/10 16/7/10 £1.50
98765 10/7/10 12/7/10 £2.99
A simple min/max on the Date won't work as the Price might be used more than once in different ranges of dates.
Any suggestions?
Many Thanks
James
Turn this:
ProductNo Date Price
12345 10/7/10 £1.50
12345 11/7/10 £1.50
12345 12/7/10 £1.50
12345 13/7/10 £2.30
12345 14/7/10 £2.30
12345 15/7/10 £1.50
12345 16/7/10 £1.50
98765 10/7/10 £2.99
98765 10/7/10 £2.99
Into this:
ProductNo StartDate EndDate Price
12345 10/7/10 12/7/10 £1.50
12345 13/7/10 14/7/10 £2.30
12345 15/7/10 16/7/10 £1.50
98765 10/7/10 12/7/10 £2.99
A simple min/max on the Date won't work as the Price might be used more than once in different ranges of dates.
Any suggestions?
Many Thanks
James