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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

c# - Create dynamic LINQ query expression at runtime which translates into a parameterized SQL query for nullable types -

cmake - cpack generates RPMs with %files entries that conflict with the RPM spec. How to fix? -