The Zulily app needs to recommend the best available seating block for a live shopping theater event. Write a PostgreSQL query that finds one block of consecutive available seats for a specified screening.
101 and seats whose status is available.1 is the best rank.| Column | Type | Description |
|---|---|---|
| screening_idPK | INT | Unique screening identifier |
| screening_name | VARCHAR(100) | Name of the Zulily event or show |
| Column | Type | Description |
|---|---|---|
| seat_idPK | INT | Unique seat inventory identifier |
| screening_id | INT | References screenings.screening_id |
| row_label | VARCHAR(10) | Theater row label |
| seat_number | INT | Numeric position within the row |
| seat_rank | INT | Seat quality rank, with 1 as the best rank |
| status | VARCHAR(20) | Seat availability status |