MySQL syntax for Join Update
MySQL supports a multi-table UPDATE syntax, which would look approximately like this: You can update the Train table and delete from the Reservations table in the same transaction. As long as you do the update first and then do the delete second, it should work.