Hi There,
I have the following tables, with these keys in my database:
bookings session_id
sessions session_id course_id
courses course_id
I want to create a query to delete all date relating to a single course (course_id). For example if I wanted delete course_id=10, I would want any sessions with course_id=10 to be deleted, in addition any bookings associated with any of these sessions need to be deleted too.
Is this possible? what is the best way to approach it? (I'm writing this in PHP.)
Any help much appreciated!