ソースコード
select 
a.LINE_ID as LINE
,a.SEAT_NO as SEAT_F
,c.SEAT_NO as SEAT_T
from SEAT_RESERVE a
left join SEAT_RESERVE b
on a.LINE_ID = b.LINE_ID
and b.RSV_STATUS = '0'
and  a.SEAT_NO + 1 = b.SEAT_NO
left join SEAT_RESERVE c
on a.LINE_ID = c.LINE_ID
and c.RSV_STATUS = '0'
and  a.SEAT_NO + 2 = c.SEAT_NO
where 
a.LINE_ID is not null
and b.LINE_ID is not null
and c.LINE_ID is not null
order by a.LINE_ID desc,a.SEAT_NO 
提出情報
提出日時2024/06/24 10:30:43
コンテスト第13回 SQLコンテスト
問題空席検索
受験者yuo000
状態 (詳細)WA
(Wrong Answer: 誤答)
メモリ使用量84 MB
メッセージ
テストケース(通過数/総数)
0/3
状態
メモリ使用量
データパターン1
WA
84 MB
データパターン2
WA
84 MB
データパターン3
WA
83 MB