I am trying to do a group by on this table so that it will look like the following below.
Before
Student Fruit 1 Fruit 2
Tom Apple Banana
Tom Banana Apple
Gary Apple Banana
After
Student Fruit 1 Fruit 2 Count Repeated Condition
Tom Apple Banana 2 True
Gary Apple Banana 1 False
Anyone knows how can this be easily achieved on Google BigQuery? Order does not matter. I have tried String_AGG and Concat functions but the order matters.
Trying to create a function that attempts to create the second table.
Repeated Conditiongenerated? - NickCountcount? - Nick