aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/aggregate/table_funcs_group_by.sql
blob: 85652ed433da09132db1d1c2d2f22f6a6abbb77e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
/* syntax version 1 */
/* postgres can not */
use plato;

--insert into Output
select
  groupTribit,
  count(*) as count
from Input
GROUP BY TableRecordIndex() % 3 as groupTribit
ORDER BY groupTribit, count