mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
5f962015ca
fix style fix build
26 lines
806 B
SQL
26 lines
806 B
SQL
SELECT ALL 'a';
|
|
SELECT DISTINCT 'a';
|
|
SELECT ALL * FROM (SELECT 1 UNION ALL SELECT 1);
|
|
SELECT DISTINCT * FROM (SELECT 2 UNION ALL SELECT 2);
|
|
|
|
SELECT sum(number) FROM numbers(10);
|
|
SELECT sum(ALL number) FROM numbers(10);
|
|
SELECT sum(DISTINCT number) FROM numbers(10);
|
|
|
|
SELECT sum(ALL x) FROM (SELECT 1 x UNION ALL SELECT 1);
|
|
SELECT sum(DISTINCT x) FROM (SELECT 1 x UNION ALL SELECT 1);
|
|
|
|
SELECT sum(ALL) FROM (SELECT 1 AS ALL);
|
|
|
|
SELECT sum(DISTINCT) FROM (SELECT 1 AS DISTINCT);
|
|
|
|
SELECT repeat('a', ALL) FROM (SELECT number AS ALL FROM numbers(10));
|
|
|
|
SELECT repeat('a', DISTINCT) FROM (SELECT number AS DISTINCT FROM numbers(10));
|
|
|
|
SELECT repeat(ALL, 5) FROM (SELECT 'a' AS ALL);
|
|
|
|
SELECT repeat(DISTINCT, 5) FROM (SELECT 'a' AS DISTINCT);
|
|
|
|
SELECT repeat(ALL, DISTINCT) FROM (SELECT 'a' AS ALL, 5 AS DISTINCT);
|