ClickHouse/dbms/tests/queries/0_stateless/00209_insert_select_extremes.sql

12 lines
349 B
MySQL
Raw Normal View History

DROP TABLE IF EXISTS test;
CREATE TABLE test (x UInt8) ENGINE = Log;
2015-07-27 16:57:02 +00:00
INSERT INTO test SELECT 1 AS x;
INSERT INTO test SELECT 1 AS x SETTINGS extremes = 1;
INSERT INTO test SELECT 1 AS x GROUP BY 1 WITH TOTALS;
INSERT INTO test SELECT 1 AS x GROUP BY 1 WITH TOTALS SETTINGS extremes = 1;
2015-07-27 16:57:02 +00:00
SELECT count(), min(x), max(x) FROM test;
2015-07-27 16:57:02 +00:00
DROP TABLE test;