📅  最后修改于: 2022-03-11 15:05:00.330000             🧑  作者: Mango
SELECT
job_title,
LISTAGG(
first_name,
','
) WITHIN GROUP(
ORDER BY
first_name
) AS employees
FROM
employees
GROUP BY
job_title
ORDER BY
job_title;