ClickHouse/tests/queries/0_stateless/01069_set_in_group_by.sql

10 lines
301 B
MySQL
Raw Normal View History

2020-01-27 21:57:44 +00:00
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;