mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
This commit is contained in:
parent
1bd84d5ac4
commit
85121ff50d
@ -0,0 +1 @@
|
||||
1 Ksenia
|
14
tests/queries/0_stateless/03094_analyzer_fiddle_multiif.sql
Normal file
14
tests/queries/0_stateless/03094_analyzer_fiddle_multiif.sql
Normal file
@ -0,0 +1,14 @@
|
||||
DROP TABLE IF EXISTS users_03094;
|
||||
|
||||
CREATE TABLE users_03094 (name String, age Int16) ENGINE=Memory;
|
||||
INSERT INTO users_03094 VALUES ('John', 33);
|
||||
INSERT INTO users_03094 VALUES ('Ksenia', 48);
|
||||
INSERT INTO users_03094 VALUES ('Alice', 50);
|
||||
|
||||
SELECT
|
||||
multiIf((age > 30) or (true), '1', '2') AS a,
|
||||
max(name)
|
||||
FROM users_03094
|
||||
GROUP BY a;
|
||||
|
||||
DROP TABLE IF EXISTS users_03094;
|
Loading…
Reference in New Issue
Block a user