SQL manual introduction

更新时间:
复制 MD 格式

ApsaraDB for ClickHouse supports a declarative query language based on SQL. It complies with the American National Standards Institute (ANSI) SQL standards in many cases.

Supported SQL features

FeatureDescription
GROUP BYAggregates rows that share a common value and computes summary statistics across groups.
ORDER BYSorts query results by one or more columns in ascending or descending order.
Subqueries in FROMUses the result of a nested SELECT as a derived table in the FROM clause.
JOIN clauseCombines rows from two or more tables based on a related column.
IN operatorFilters rows by testing whether a value matches any member of a list or subquery result.
Window functionsPerforms calculations across a set of rows related to the current row without collapsing them into a single output row.
Scalar subqueriesEmbeds a subquery that returns a single value directly in a SELECT list, WHERE clause, or expression.