mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 20:42:04 +00:00
11 lines
264 B
SQL
11 lines
264 B
SQL
# We support specifying aliases in any place in the query, including CASE expression:
|
|
|
|
with arrayJoin([1,2]) as arg
|
|
select arg,
|
|
(case
|
|
when arg = 1
|
|
then 1 as one
|
|
when arg = 2
|
|
then one / 2
|
|
end) as imposible;
|