Interval math
Add slots * interval '15 min' to a timestamp to get the end time.
task
Bookings that end after midnight (starts_at + slots*15 minutes lands on a later day). Return booking_id.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
Add slots * interval '15 min' to a timestamp to get the end time.
Bookings that end after midnight (starts_at + slots*15 minutes lands on a later day). Return booking_id.