Skip to content

Instantly share code, notes, and snippets.

@janbenetka
Created October 28, 2020 21:49
Show Gist options
  • Save janbenetka/3aff4af86a3e6f8f8dbbb858b734386f to your computer and use it in GitHub Desktop.
Save janbenetka/3aff4af86a3e6f8f8dbbb858b734386f to your computer and use it in GitHub Desktop.
[BigQuery: Concat all text of grouped by rows] #bigquery #groupby
SELECT url, COUNT(*) AS popularity, GROUP_CONCAT(tweet)
FROM Table GROUP BY url ORDER BY popularity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment