aggregate_distinct_expr.sql 292 B

123456789
  1. /* syntax version 1 */
  2. /* postgres can not */
  3. use plato;
  4. select
  5. sum(distinct cast(Unicode::ToLower(CAST(subkey AS Utf8)) as Int32)) + sum(distinct cast(Unicode::ToUpper(CAST(subkey AS Utf8)) as Uint64)) as sks,
  6. ListSort(aggregate_list(distinct key || "_")) as kl
  7. from Input3;