Skip to content

SQL Overview ​

Arneb supports a broad subset of ANSI SQL. This section documents all supported statements, expressions, and functions.

Supported Statements ​

StatementDescription
SELECTQuery data with filtering, grouping, ordering, and joins
EXPLAINDisplay the query execution plan
CREATE TABLECreate a new table
DROP TABLERemove a table
CREATE TABLE AS SELECTCreate a table from a query result
INSERT INTOInsert rows into a table
DELETE FROMDelete rows from a table
CREATE VIEWCreate a named view
DROP VIEWRemove a view

Query Capabilities ​

Arneb supports the following query features:

  • Joins: INNER, LEFT, RIGHT, FULL OUTER, CROSS, and semi-joins
  • Aggregations: GROUP BY with HAVING, aggregate functions (COUNT, SUM, AVG, MIN, MAX)
  • Subqueries: Scalar, IN, and EXISTS subqueries
  • CTEs: Common Table Expressions via WITH clauses
  • Set Operations: UNION ALL, UNION, INTERSECT, EXCEPT
  • Window Functions: ROW_NUMBER, RANK, DENSE_RANK, and aggregate window functions with PARTITION BY and ORDER BY
  • Ordering and Limiting: ORDER BY (including on aliases and aggregates), LIMIT, OFFSET

Further Reading ​

  • Expressions — operators, CASE, CAST, LIKE, and more
  • Functions — all 90 built-in scalar functions (Trino-compatible)
  • Advanced — CTEs, window functions, set operations