LIMIT and OFFSET Examples - 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

The following example illustrates the use of LIMIT AND OFFSET where 50 rows are returned beginning at row 20.

Example 1:

SELECT city FROM table WHERE obj EnvelopesIntersect <geometry> LIMIT 50 OFFSET 20

Example 2:

If the data source provider does not support LIMIT and /or OFFSET, the data provider will act on this query:
SELECT city FROM table WHERE obj EnvelopesIntersect <geometry> 
Spectrum will perform the LIMIT and OFFSET
SELECT city FROM <results of the non-delegated query> LIMIT 50 OFFSET 20