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

14 lines
435 B
MySQL
Raw Normal View History

2019-06-03 17:36:27 +00:00
DROP TABLE IF EXISTS test_00209;
CREATE TABLE test_00209 (x UInt8) ENGINE = Log;
2015-07-27 16:57:02 +00:00
2022-03-24 01:39:28 +00:00
SET enable_positional_arguments = 0;
2019-06-03 17:36:27 +00:00
INSERT INTO test_00209 SELECT 1 AS x;
INSERT INTO test_00209 SELECT 1 AS x SETTINGS extremes = 1;
INSERT INTO test_00209 SELECT 1 AS x GROUP BY 1 WITH TOTALS;
INSERT INTO test_00209 SELECT 1 AS x GROUP BY 1 WITH TOTALS SETTINGS extremes = 1;
2015-07-27 16:57:02 +00:00
2019-06-03 17:36:27 +00:00
SELECT count(), min(x), max(x) FROM test_00209;
2015-07-27 16:57:02 +00:00
2019-06-03 17:36:27 +00:00
DROP TABLE test_00209;