LeetCode-SQL-603. 连续空余座位
程序员文章站
2022-06-11 14:29:46
...
select distinct a.seat_id
from cinema a join cinema b
on abs(a.seat_id - b.seat_id) = 1
and a.free = true and b.free = true
order by a.seat_id
;