79702957

Date: 2025-07-16 05:52:59
Score: 1
Natty:
Report link

You can try to use CROSS JOIN + WHERE instead.

SELECT * 
FROM table1 t1
    CROSS JOIN table2 t2
WHERE t1.id = t2.id and t1.date >= t2.valid_from_date and t1.date < t2.valid_to_date
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dmitri Gorodetskiy