Queries#
A query retrieves data from a Querona virtual database with the SELECT statement and its
clauses. This section describes the clauses and options Querona supports.
SELECT — the
SELECTstatement, its projection list and theGROUP BY,HAVING,ORDER BY,OVERandFORclauses.FROM — the table sources a query reads from, including joins.
Common Table Expressions (WITH) — non-recursive
WITHclauses: named subqueries you reference like tables.WHERE — filters rows with Predicates.
TOP — limits the number of rows returned.
Hints and OPTION clause — query hints and the
OPTIONclause.Reading execution plans — how to read the execution plan of a federated query, and what the
Remote Queryoperator tells you about push-down.
Beyond tables and views, the FROM clause can read external data directly through rowset functions
such as OPENQUERY,
OPENROWSET and OPENJSON.