ソースコード
SELECT T3.ITEM_CODE AS CODE, T4.ITEM_NAME AS NAME, SUM(T3.ORDER_QTY) AS SUM_QTY
    FROM 
    (SELECT T2.ITEM_CODE, T2.ORDER_QTY
    FROM
        (SELECT ORDER_NO 
        FROM ORDERS
        WHERE WH_CODE = (SELECT DISTINCT(WH_CODE) FROM WAREHOUSE WHERE WH_NAME = '浦和倉庫')) AS T1
    INNER JOIN ORDERS_DTL AS T2
    ON T1.ORDER_NO = T2.ORDER_NO) AS T3
LEFT JOIN ITEM AS T4
ON T3.ITEM_CODE = T4.ITEM_CODE
GROUP BY CODE
HAVING SUM_QTY >= 50
ORDER BY SUM_QTY DESC, CODE DESC
提出情報
提出日時2024/06/15 16:44:51
コンテスト第1回 SQLコンテスト初級編
問題売れ筋商品
受験者tipstar0125
状態 (詳細)AC
(Accepted: 正答)
メモリ使用量85 MB
メッセージ
テストケース(通過数/総数)
2/2
状態
メモリ使用量
データパターン1
AC
84 MB
データパターン2
AC
85 MB