Skip to content

Instantly share code, notes, and snippets.

@neurotech
Created March 26, 2013 01:50
Show Gist options
  • Select an option

  • Save neurotech/5242465 to your computer and use it in GitHub Desktop.

Select an option

Save neurotech/5242465 to your computer and use it in GitHub Desktop.
SELECT workdept,
LISTAGG(lastname, ', ') WITHIN GROUP(ORDER BY lastname) AS employees
FROM emp
GROUP BY workdept
@neurotech
Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment