【发布时间】:2020-01-28 05:53:29
【问题描述】:
我正在尝试在此表上进行分组,使其如下所示。
之前
Student Fruit 1 Fruit 2
Tom Apple Banana
Tom Banana Apple
Gary Apple Banana
之后
Student Fruit 1 Fruit 2 Count Repeated Condition
Tom Apple Banana 2 True
Gary Apple Banana 1 False
有人知道如何在 Google BigQuery 上轻松实现这一点吗?顺序无所谓。我尝试过 String_AGG 和 Concat 函数,但顺序很重要。
试图创建一个试图创建第二个表的函数。
【问题讨论】:
-
Repeated Condition是如何生成的? -
如果计数 >1 则为真否则为假
-
那么
Count算什么? -
他以不同顺序食用苹果和香蕉的那排汤姆
标签: javascript sql google-apps-script google-bigquery