603_Consecutive Available Seats
| seat_id | free |
|---------|------|
| 1 | 1 |
| 2 | 0 |
| 3 | 1 |
| 4 | 1 |
| 5 | 1 || seat_id |
|---------|
| 3 |
| 4 |
| 5 |Solution 1: Using Join
Solution 2: Using subquery
Last updated