Hello,
my table looks like:
Code:
Product YEAR QUARTER PRICE
A 2006 1 100
A 2006 2 110
A 2006 3 120
B 2006 1 200
C 2006 3 600
C 2006 4 610
I need an AVG(Price) of all products for the year 2006, but under the following terms:
When computing the average, don't count one specific product more than one time. Only use one products last price. In this case:
(120 + 200 + 610) / 3 is the wanted average price. Any idea for a small and smart solution?
Thank you very much!!