One more test

This commit is contained in:
Alexey Milovidov 2021-01-05 04:03:38 +03:00
parent c2c1d97da2
commit ab6798addd
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,2 @@
0

View File

@ -0,0 +1,4 @@
DROP TABLE IF EXISTS t;
CREATE TABLE t (`item_id` UInt64, `price_sold` Float32, `date` Date) ENGINE = MergeTree ORDER BY item_id;
SELECT item_id FROM (SELECT item_id FROM t GROUP BY item_id WITH TOTALS) AS l FULL OUTER JOIN (SELECT item_id FROM t GROUP BY item_id WITH TOTALS) AS r USING (item_id);
DROP TABLE t;