mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
31 lines
488 B
Plaintext
31 lines
488 B
Plaintext
SELECT any(number) + (any(number) * 2)
|
|
FROM numbers(1, 2)
|
|
3
|
|
SELECT anyLast(number) + (anyLast(number) * 2)
|
|
FROM numbers(1, 2)
|
|
6
|
|
WITH any(number) * 3 AS x
|
|
SELECT x
|
|
FROM numbers(1, 2)
|
|
3
|
|
SELECT
|
|
anyLast(number) * 3 AS x,
|
|
x
|
|
FROM numbers(1, 2)
|
|
6 6
|
|
SELECT any(number + (number * 2))
|
|
FROM numbers(1, 2)
|
|
3
|
|
SELECT anyLast(number + (number * 2))
|
|
FROM numbers(1, 2)
|
|
6
|
|
WITH any(number * 3) AS x
|
|
SELECT x
|
|
FROM numbers(1, 2)
|
|
3
|
|
SELECT
|
|
anyLast(number * 3) AS x,
|
|
x
|
|
FROM numbers(1, 2)
|
|
6 6
|