Skip to main content

TOP_N function

Returns the top N rows of the table based on specified criteria.

Syntax

top_n(<table>, <limit>)
ParameterTypeDescription
tablevtThe table from which to select the top N rows.
limitintThe number of rows to return.