Same - 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

Returns the value that is the same in all the records in the specified attribute.

Syntax

Same ( n )

Arguments

n is a numeric, string, or date expression.

Example

This query returns the same continent value from the IN condition. If cannot find the same value then it returns null.

select Same(continent) as continent from world where country in ( 'Iceland' ,'Croatia','Georgia')

Remarks

Given an attribute, this aggregate function returns a value if all rows in that attribute have the same value or returns null if not all of the rows have the same value. Null values are ignored. If the attribute has all nulls, then null is returned.

See also http://en.wikipedia.org/wiki/Sameness.