Last active
December 14, 2021 12:54
-
-
Save DakaiZhou/7f5e4ae809d265b2d83fa825f5a6eb3f to your computer and use it in GitHub Desktop.
sql_tricks1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT company, STRING_AGG(employee, ', ') AS employee | |
FROM your_table | |
GROUP BY company; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment