ソースコード
SELECT
    SUM_ORD_DTL.ITEM_CODE as CODE,
    SUM_ORD_DTL.ITEM_NAME as NAME,
    SUM_ORD_DTL.SUM_QTY as SUM_QTY
FROM
    WAREHOUSE
INNER JOIN ORDERS
    ON WAREHOUSE.WH_CODE = ORDERS.WH_CODE
    AND WAREHOUSE.WH_NAME = '浦和倉庫'
INNER JOIN (
    SELECT
        ORDERS_DTL.ORDER_NO AS ORDER_NO,
        ORDERS_DTL.ITEM_CODE AS ITEM_CODE,
        ITEM.ITEM_NAME AS ITEM_NAME,
        SUM(ORDERS_DTL.ORDER_QTY) AS SUM_QTY
    FROM
        ORDERS_DTL
    LEFT OUTER JOIN ITEM
        ON ORDERS_DTL.ITEM_CODE = ITEM.ITEM_CODE
    GROUP BY
        ORDERS_DTL.ITEM_CODE
    HAVING
        SUM(ORDERS_DTL.ORDER_QTY) >= 50
) as SUM_ORD_DTL
    ON ORDERS.ORDER_NO = SUM_ORD_DTL.ORDER_NO
提出情報
提出日時2024/08/31 19:52:39
コンテスト第1回 SQLコンテスト初級編
問題売れ筋商品
受験者moriryo_o
状態 (詳細)WA
(Wrong Answer: 誤答)
メモリ使用量85 MB
メッセージ
テストケース(通過数/総数)
0/2
状態
メモリ使用量
データパターン1
WA
85 MB
データパターン2
WA
85 MB