ソースコード
with zero_sr as (select *
from SEAT_RESERVE as sr
where rsv_status = '0'
),

result as (select
zsr1.line_id as LINE,
zsr2.seat_no as SEAT_F,
zsr1.seat_no as SEAT_T
from zero_sr as zsr1
left join zero_sr as zsr2
on zsr1.line_id = zsr2.line_id and zsr1.seat_no = zsr2.seat_no + 2
where zsr1.seat_no is not NULL and zsr2.seat_no is not NULL
order by LINE desc, SEAT_F asc
)

select
r.*
from result as r
;
提出情報
提出日時2024/06/23 19:26:07
コンテスト第13回 SQLコンテスト
問題空席検索
受験者yaona
状態 (詳細)WA
(Wrong Answer: 誤答)
メモリ使用量88 MB
メッセージ
テストケース(通過数/総数)
0/3
状態
メモリ使用量
データパターン1
WA
88 MB
データパターン2
WA
83 MB
データパターン3
WA
83 MB