Mode - 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
2025-03-07
ft:lastPublication
2025-03-07T10:28:48.112000

Description

Computes the mode value of an aggregation of values. Mode is the most frequent value.

Syntax

Mode (n )

Arguments

n is a numeric, string, or date expression.

Example

This query returns the mode and average of each continent's female population.

select Mode(Pop_Fem) as ModePopulation, Avg(Pop_Fem) as Average from countries

Remarks

Mode is an aggregation function which can only be used in an aggregating SELECT statement. Null values are ignored. If there are only null values supplied in the aggregation, then a null value is returned. In the case of multiple modes, null value is returned.

See also http://en.wikipedia.org/wiki/Mode_(statistics).