Built-in Functions → Query Functions

A query function queries a column and returns values or distinct values with the option to apply additional filters to narrow down the results.

Query functions are available when creating the query expressions of global variables, internal session variables, and In-Query filters. For more details, refer to Concepts → Internal Query Expression.

FunctionSignatureDescription
query()query(column, filter1, filter2, ...)Returns values of a given column that satisfy one or more optional filter conditions.
queryWithLimit()query(column, limit, filter1, filter2, ...)Returns a limited number of values of a given column that satisfy one or more optional filter conditions.
queryDistinct()queryDistinct(column, filter1, filter2, ...)Returns distinct values of a given column that satisfy one or more optional filter conditions.
queryDistinctWithLimit()query(column, limit, filter1, filter2, ...)Returns a limited number of distinct values of a given column that satisfy one or more optional filter conditions.