ソースコード
with ad as (
select  ITEM_CODE AS CODE
       ,ITEM_NAME AS NAME
       ,"ADD" AS COMP_RSLT
from item i
where not exists (
select * from item_history ih
where i.item_code = ih.item_code))

,upd as (
select  ITEM_CODE AS CODE
       ,ITEM_NAME AS NAME
       , "UPDATE" AS COMP_RSLT
from item i
where exists (
select * from item_history ih
where i.item_code = ih.item_code
and   i.USER_UPDATE_DATETIME <> ih.USER_UPDATE_DATETIME))

,del as (
select  ITEM_CODE AS CODE
       ,ITEM_NAME AS NAME
       ,"DELETE" AS COMP_RSLT
from item ih
where not exists (
select * from item_history i
where i.item_code = ih.item_code))

select *
from ad
union
select *
from upd
union
select *
from del
提出情報
提出日時2024/04/22 09:42:34
コンテスト第12回 SQLコンテスト
問題データ操作履歴
受験者yambe8
状態 (詳細)WA
(Wrong Answer: 誤答)
メモリ使用量84 MB
メッセージ
テストケース(通過数/総数)
0/3
状態
メモリ使用量
データパターン1
WA
84 MB
データパターン2
WA
83 MB
データパターン3
WA
84 MB