Probeer dit alsjeblieft, ik hoop dat het helpt.
DELETE FROM departure, departure_time
USING departure
INNER JOIN departure_time
WHERE departure_date = '2016-09-30'
AND departure_time.id = departure.id
Of
DELETE FROM departure, departure_time
USING departure
INNER JOIN departure_time
WHERE departure_date = '2016-09-30'
AND departure_time.departure_id = departure.id
Of u kunt ON DELETE CASCADE
. gebruiken dat zal automatisch voor u werken.