aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/distinct/distinct_and_join.sql
blob: 3f36ed9841192e3d8cb88671710e7005cd743fec (plain) (blame)
1
2
3
4
5
6
7
8
SELECT
DISTINCT
    i1.key,
    i2.key,
    i1.subkey
FROM plato.Input AS i1 JOIN plato.Input AS i2 on i1.key == i2.subkey
ORDER BY i1.key, i2.key, i1.subkey
;