ソースコード
select
 chg.date2 as ck_date,
 mst.member_code as code,
 mst.last_name || mst.first_name as name,
 chg.CHG_WT as chg_wt
from member_mst as mst
left join (
select 
tb1.CHECKUP_DATE date1
, tb2.CHECKUP_DATE date2
, tb1.MEMBER_CODE
, round(tb2.WEIGHT - tb1.WEIGHT, 1) as CHG_WT
from health_checkup as tb1
left join health_checkup as tb2
on tb1.member_code = tb2.member_code 
and tb1.checkup_date < tb2.checkup_date
where date2 is not null
) chg
on mst.member_code = chg.member_code
where chg.CHG_WT >= 5 or chg.CHG_WT <= -5
提出情報
提出日時2024/06/21 16:31:51
コンテスト第13回 SQLコンテスト
問題体重差分
受験者nmanh97
状態 (詳細)WA
(Wrong Answer: 誤答)
メモリ使用量85 MB
メッセージ
テストケース(通過数/総数)
0/2
状態
メモリ使用量
データパターン1
WA
85 MB
データパターン2
WA
84 MB