aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/distinct/distinct_columns_after_group.sql
blob: 0d98c79f1d7756bb0ba4e8f776dd6141a4fea0b8 (plain) (blame)
1
2
3
4
/* postgres can not */
select distinct avg_key, min_val from (
    select avg(cast(key as int)) as avg_key, min(value) as min_val from plato.Input3 group by subkey
) as x order by avg_key, min_val;