📜  ps5什么时候出来 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:59.250000             🧑  作者: Mango

代码示例2
SELECT
    product_name,
    list_price,
    category_id
FROM
    production.products p1
WHERE
    list_price IN (
        SELECT
            MAX (p2.list_price)
        FROM
            production.products p2
        WHERE
            p2.category_id = p1.category_id
        GROUP BY
            p2.category_id
    )
ORDER BY
    category_id,
    product_name;