ClickHouse/tests/queries/0_stateless/00120_join_and_group_by.sql

7 lines
379 B
MySQL
Raw Normal View History

SELECT value FROM system.one ANY LEFT JOIN (SELECT dummy, dummy AS value) js2 USING dummy GROUP BY value;
SELECT value1, value2, sum(number)
FROM (SELECT number, intHash64(number) AS value1 FROM system.numbers LIMIT 10) js1
ANY LEFT JOIN (SELECT number, intHash32(number) AS value2 FROM system.numbers LIMIT 10) js2
2021-04-02 22:57:04 +00:00
USING number GROUP BY value1, value2 ORDER BY value1, value2;