SQL Clauses
SQL clauses define how data is retrieved, filtered, and manipulated. They specify what data to include, how to organize it, and the conditions rows must meet to appear in the result set.
Redpanda SQL supports the following clauses:
| Clause | Description |
|---|---|
Defines the source tables or views for the query. |
|
Filters rows based on specified conditions. |
|
Groups rows sharing common values in specified columns for aggregation. |
|
Filters grouped rows based on aggregate conditions. |
|
Sorts the result set by specified columns in ascending or descending order. |
|
Restricts the number of rows returned by the query. |
|
Skips a specified number of rows before returning results. |
|
Combines or compares results from multiple |
|
Creates temporary named result sets (Common Table Expressions) for reuse within queries. |
|
Specifies the window over which window functions operate on subsets of data. |