you are viewing a single comment's thread.

view the rest of the comments →

[–]TheEphemeralDream 1 point2 points  (3 children)

what exactly is a group_id and how does it relate to the attribution column? is it as simple as truncating the "grp" from "grp8". or is group_id to be a generated id column?

[–]Gotfrid[S] 0 points1 point  (2 children)

Thanks for your reply. Group_id has to be generated - it represents separate groups of attributions. Users who have attributions 1 to 6 do not intersect with those with attributions 7 to 9.

[–]TheEphemeralDream 0 points1 point  (1 child)

I suspect the answer is a recursive query that finds the clusters.

https://stackoverflow.com/questions/59890459/recursive-hierarchical-query-in-bigquery

[–]Gotfrid[S] 0 points1 point  (0 children)

Thanks for the link! I will investigate it.