SQL clauses help define how data is retrieved, filtered and manipulated. They provide a structured way to specify what data to include, how to organize it and what conditions must be met for rows to be included in the result set.

The following table summarizes the clauses supported by Oxla:

Clause Name
Description
FROMDefines the source table(s) or view(s) for the query
WHEREFilters rows based on specified conditions
GROUP BYGroups rows sharing common values in specified columns for aggregation
HAVINGFilters grouped rows based on aggregate conditions
ORDER BYSorts the result set by specified columns in ascending or descending order
LIMITRestricts the number of rows returned by the query
OFFSETSkips a specified number of rows before returning results
SET OPERATIONSCombine or compare results from multiple SELECT statements, such as UNION, INTERSECT and EXCEPT
WITHCreates temporary named result sets (Common Table Expressions) for reuse within queries
OVERSpecifies the window over which window functions to operate on subsets of data