📜  oracle sql listagg - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:00.330000             🧑  作者: Mango

代码示例1
SELECT
    job_title,
    LISTAGG(
        first_name,
        ','
    ) WITHIN GROUP(
    ORDER BY
        first_name
    ) AS employees
FROM
    employees
GROUP BY
    job_title
ORDER BY
    job_title;