flatten_expr_groupby.sql 257 B

1234567
  1. /* syntax version 1 */
  2. /* postgres can not */
  3. $data = SELECT "a,b,c,d" AS a, "e,f,g,h" AS b, "x" AS c;
  4. SELECT bb,count(*) as count FROM $data FLATTEN BY (String::SplitToList(a, ",") as a, String::SplitToList(b, ",") as bb) GROUP BY bb ORDER BY bb,count;