79711751

Date: 2025-07-23 11:09:38
Score: 1
Natty:
Report link

SELECT a.id AS booking1,

   b.id AS booking2,

   a.start_date, a.end_date,

   b.start_date, b.end_date

FROM bookings a

JOIN bookings b

ON a.id < b.id

AND a.start_date <= b.end_date

AND a.end_date >= b.start_date;

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dipak Ghuge