I am looking for a median function built in to a query such as:
SELECT median(number_list) AS medianoflist
FROM basequery;
Access has Min, Max, Avg etc.
Is there a way to run a query and get median - which is the middle number of a list:
Example:
1 6 8 10 11
8 is the median (middle number of the list) if odd
Example 2:
1 3 5 7 9 10 12 15
(7 + 9)/2 = 8 is the median if even number in list
SELECT median(number_list) AS medianoflist
FROM basequery;
Access has Min, Max, Avg etc.
Is there a way to run a query and get median - which is the middle number of a list:
Example:
1 6 8 10 11
8 is the median (middle number of the list) if odd
Example 2:
1 3 5 7 9 10 12 15
(7 + 9)/2 = 8 is the median if even number in list