Skip to content
Advertisement

BigQuery SQL : Dynamically Concat all rows in column by key

I have a table like this:

I need concat strings in column Plan/Date by Customer Key And Get Output like this:

The main challenge is that the number of rows for each customer can be different

Thanks for the help 🙂

Advertisement

Answer

If you want a string, then you want string_agg():

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement