D
delali
I have a table with states and numbers and i want to find the average of the
first n occurances of each state.
example:
boston 10
boston 20
boston 50
new york 30
new york 60
new york 100
new york 20
i want a query that gives me the average of the first 2 occurances of each
state. boston = 15 and new york = 40. or the first 3 occurances and so on.
can someone please help?
first n occurances of each state.
example:
boston 10
boston 20
boston 50
new york 30
new york 60
new york 100
new york 20
i want a query that gives me the average of the first 2 occurances of each
state. boston = 15 and new york = 40. or the first 3 occurances and so on.
can someone please help?