Median - spectrum_spatial - Latest

Spectrum Spatial Guide

Product type
Software
Portfolio
Locate
Product family
Spectrumâ„¢ software
Product
Spectrumâ„¢ software > Spatial > Spectrum Spatial
Version
Latest
ft:locale
en-US
Product name
Spectrum Technology Platform
ft:title
Spectrum Spatial Guide
Copyright
2025
First publish date
2007
ft:lastEdition
2026-05-14
ft:lastPublication
2026-05-14T15:28:23.501334
L1_Product_Gateway
Locate
L2_Product_Segment
Location Intelligence
L3_Product_Brand
Precisely Spectrum Spatial
L4_Investment_Segment
LI Enterprise
L5_Product_Group
Enterprise LI
L6_Product_Name
Spectrum Spatial

Description

Returns the median of all the values in the specified attribute, which is equivalent to sorting all the values and picking the value in the middle. If there is an even number of values, the mean of the two middle values is returned.

Syntax

Median ( n )

Arguments

n is a numeric or temporal expression.

Example

This query returns the median of each continent's female population.

select median(pop_fem), continent from countries group by continent