ソースコード
select
    t1.line_id as LINE, t1.seat_no as SEAT_F, t3.seat_no as SEAT_T

from SEAT_RESERVE as t1
join SEAT_RESERVE as t2 on t1.line_id = t2.line_id and t2.seat_no = t1.seat_no + 1
join SEAT_RESERVE as t3 on t1.line_id = t3.line_id and t3.seat_no = t1.seat_no + 2
where t1.rsv_status = 0 and t2.rsv_status = 0 and t3.rsv_status = 0
order by t1.line_id desc, t1.seat_no;
提出情報
提出日時2024/06/24 00:19:26
コンテスト第13回 SQLコンテスト
問題空席検索
受験者sqlstart
状態 (詳細)AC
(Accepted: 正答)
メモリ使用量97 MB
メッセージ
テストケース(通過数/総数)
3/3
状態
メモリ使用量
データパターン1
AC
97 MB
データパターン2
AC
88 MB
データパターン3
AC
83 MB