I want to delete (in one statement) rows from table activities [eventid is PK] and bookings [studentid is FK and eventid is FK]. I tried this :
delete bo from bookings as bo inner join activities as ac on ac.eventid=bo.eventid where bo.eventid=3
but it deletes row only in bookings.
what do I have to change?