TOP <N>

constructsupportedQueries & DML

docs.snowflake.com ↗

Constrains the maximum number of rows returned by a statement or subquery.

Syntax

SELECT
  [ TOP <n> ]
    ...
FROM ...
[ ORDER BY ... ]
[ ... ]

Parameters

NameRequiredDescription
nThe maximum number of rows to return in the result set.

Usage notes

Parameters

n: The maximum number of rows to return in the result set.

See also

Referenced by