group_by_gs_duo.sql 164 B

123
  1. /* syntax version 1 */
  2. /* postgres can not */
  3. select sum(length(value)), key, subkey from plato.Input group by grouping sets ((key),(subkey)) order by key, subkey;