Majority - 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-09-26
ft:lastPublication
2025-09-26T10:03:58.880000

Description

Works on an attribute and returns the value that is greater than 50% of the rows in that attribute.

Syntax

Majority ( attribute )

Arguments

n is a numeric, string, or temporal expression.

Example

This query returns the continent attribute value as Majority; that is, it returns the continent that is listed in more than 50% of the rows. If no such value found then it returns null.

select Majority(continent) as major_continent from world