If I understand your requirement correctly you can use NOT EXISTS
:
SELECT t1.id, t2.endDate
FROM table_1 t1
INNER JOIN table_2 t2 ON t2.t1_id = t1.id
WHERE NOT EXISTS
(
SELECT 1
FROM table_2 t
WHERE t.t1_id = t2.t1_id AND t.endDate > CURDATE()
)
Demo here
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…