ClickHouse/tests/queries/0_stateless/01278_format_multiple_queries.reference

17 lines
182 B
Plaintext
Raw Normal View History

2020-05-13 16:31:23 +00:00
SELECT
2020-06-01 23:31:50 +00:00
a,
2020-05-13 16:31:23 +00:00
b AS x
FROM table AS t
INNER JOIN table2 AS t2 ON t.id = t2.t_id
WHERE 1 = 1
;
SELECT
2020-06-01 23:31:50 +00:00
a,
b AS x,
2020-05-13 16:31:23 +00:00
if(x = 0, a, b)
FROM table2 AS t
WHERE t.id != 0
;