A bookings table for meeting rooms:
bookings (
booking_id INTEGER, -- unique
room_id INTEGER,
start_ts TEXT, -- 'YYYY-MM-DD HH:MM'
end_ts TEXT -- 'YYYY-MM-DD HH:MM', always after start_ts
)
Write a SQL query that returns every booking that overlaps AT LEAST ONE other
booking in the SAME room. Two bookings overlap when their time ranges
intersect for a positive duration — one ending exactly when another starts is
NOT an overlap.
Return column: booking_id (each id at most once).
Order by booking_id ASC.