ClickHouse/tests/queries/0_stateless/00688_case_without_else.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

10 lines
210 B
SQL

DROP TABLE IF EXISTS test_00688;
CREATE TABLE test_00688 (a UInt8) ENGINE = Memory;
INSERT INTO test_00688 VALUES (1), (2), (1), (3);
SELECT CASE WHEN a=1 THEN 0 END FROM test_00688;
DROP TABLE test_00688;