MEDIAN function

The MEDIAN function returns the content of the argument whose value is the middle value in the list formed by arranging the arguments in sorted order.

Format.

          FUNCTION MEDIAN ( { argument-1 } ... )