sql - Join rows Google BigQuery -
I have a large table in Google BigQuery (i.e. 3 million lines) structure is something like this:
name1 attribute1 name2 attribute2 name1 attribute2
Now I want to get the list of attributes per list that they have. So for the above example, I would like something like this:
name1 attribute1, attribute2 name2 attribute2
Is it possible with BigQuery (without it Write any code, just as a SQL query)?
I recommend that you use the GROUP_CONCAT function:
Select name, group_connect (name of the column) is named by your group.
Comments
Post a Comment