ソースコード
select 
    suub.ITEM_CODE as CODE,
    ITEM.ITEM_NAME as NAME,
    suub.ORDER_QTY as SUM_QTY
from 
    (
    select
        OD.ORDER_NO as ORDER_NO,
        OD.ITEM_CODE as ITEM_CODE,
        OD.ORDER_QTY as ORDER_QTY
    from
        (
        select 
            ORD.ORDER_NO as ORDER_NO,
            ORD.WH_CODE as WH_CODE
        from
            ORDERS as ORD
            inner join WAREHOUSE as WH
            on ORD.WH_CODE = WH.WH_CODE
        where 
            WH.WH_NAME = '浦和倉庫'
        )as sub
            inner join ORDERS_DTL as OD
            on sub.ORDER_NO = OD.ORDER_NO
    )as suub
    left outer join ITEM
    on suub.ITEM_CODE = ITEM.ITEM_CODE
    group by suub.ITEM_CODE
HAVING 
 suub.ORDER_QTY >= 50
order by 
    SUM_QTY desc,
    CODE desc
提出情報
提出日時2024/11/29 19:30:40
コンテスト第1回 SQLコンテスト初級編
問題売れ筋商品
受験者ZZPBAA79
状態 (詳細)WA
(Wrong Answer: 誤答)
メモリ使用量86 MB
メッセージ
テストケース(通過数/総数)
0/2
状態
メモリ使用量
データパターン1
WA
86 MB
データパターン2
WA
86 MB