ソースコード
select
    SAL.SALES_DATE as SAL_DATE,
    SAL.SALES_NO as NO,
    SAL_D.ITEM_CODE as ITEM_CODE,
    SAL_D.SALES_QTY as SAL_QTY,
    SAL_D.DELIVERED_QTY as DEL_QTY,
    case
        when SAL_D.DELIVERED_QTY = 0 then '未出荷'
        when SAL_D.DELIVERED_QTY <> 0 and SAL_D.SALES_QTY > SAL_D.DELIVERED_QTY then '一部出荷'
        when SAL_D.SALES_QTY = SAL_D.DELIVERED_QTY then '出荷済'
        else NULL
    end as SHIP_STS
from
    SALES as SAL
INNER JOIN SALES_DTL as SAL_D on SAL.SALES_NO = SAL_D.SALES_NO
where
    SAL.SALES_DATE BETWEEN '2024-04-01' AND '2024-04-10' 
order by SAL.SALES_DATE desc, SAL_D.SALES_NO asc, SAL_D.ITEM_CODE asc
提出情報
提出日時2024/08/06 10:49:14
コンテスト第1回 SQLコンテスト初級編
問題出荷状況確認
受験者n1030
状態 (詳細)AC
(Accepted: 正答)
メモリ使用量84 MB
メッセージ
テストケース(通過数/総数)
2/2
状態
メモリ使用量
データパターン1
AC
82 MB
データパターン2
AC
84 MB