ClickHouse/tests/queries/0_stateless/01069_set_in_group_by.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
301 B
SQL

DROP TABLE IF EXISTS testmt;
CREATE TABLE testmt (`CounterID` UInt64, `value` String) ENGINE = MergeTree() ORDER BY CounterID;
INSERT INTO testmt VALUES (1, '1'), (2, '2');
SELECT arrayJoin([CounterID NOT IN (2)]) AS counter FROM testmt WHERE CounterID IN (2) GROUP BY counter;
DROP TABLE testmt;