Unnest in bigquery

Viewed 136

I have this one data

USER_ID    EVENT_PARAMS
10001      walk
           sleep
           adventure
10002      movies
10003      book

how do I made in to this

USER_ID    EVENT_PARAMS            COUNT(EVENT_PARAMS)
10001      walk, sleep, adventure  3              
10002      movies                  1
10003      book                    1

I already tried using simple unnest but still not found what I looking for

1 Answers
Related