ClickHouse/tests/queries/0_stateless/01388_multi_if_optimization.reference

5 lines
173 B
Plaintext
Raw Normal View History

2020-07-08 22:41:25 +00:00
SELECT if(number = 1, \'hello\', if(number = 2, \'world\', \'xyz\'))
FROM numbers(10)
SELECT multiIf(number = 1, \'hello\', number = 2, \'world\', \'xyz\')
FROM numbers(10)