mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 05:52:05 +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;
|