ClickHouse/tests/queries/0_stateless/00413_distinct.reference

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
274 B
Plaintext
Raw Normal View History

-- { echoOn }
-- String field
SELECT Name FROM (SELECT DISTINCT Name FROM distinct) ORDER BY Name;
Bill
John
Mary
-- Num field
SELECT Num FROM (SELECT DISTINCT Num FROM distinct) ORDER BY Num;
1
3
4
5
7
-- all const columns
SELECT DISTINCT 1 as a, 2 as b FROM distinct;
1 2