Does anyone know how I can simulate an aggregate function to calculate the median of a group of values? My query would look something like the following:
As far as I can tell, access does not have an aggregate median function. If I coded a median function in VBA, I don't think I could include it in the select line as an aggregate. Any suggestions?
Code:
select field1, sum(field2), avg(field2), median(field2)
from myTable
group by field1