I have a table with tblPrice having fields:
StartDate ProductID Price
1/1/06 1 $10
1/2/06 1 $10
1/3/06 1 $5
1/4/06 1 $10
Is it possible to query this table so the result would look like:
ProductID Price MinDate MaxDate
1 $10 1/1/06 1/2/06
1 $5 1/3/06 1/3/06
1 $10 1/4/06 1/4/06
Using Min and Max will give me only two lines:
1, $10, 1/1/06-1/4/06
1, $5, 1/3/06
Any ideas would be greatly appreciated.
Thanks.
StartDate ProductID Price
1/1/06 1 $10
1/2/06 1 $10
1/3/06 1 $5
1/4/06 1 $10
Is it possible to query this table so the result would look like:
ProductID Price MinDate MaxDate
1 $10 1/1/06 1/2/06
1 $5 1/3/06 1/3/06
1 $10 1/4/06 1/4/06
Using Min and Max will give me only two lines:
1, $10, 1/1/06-1/4/06
1, $5, 1/3/06
Any ideas would be greatly appreciated.
Thanks.