There are multiple instances of one film in the table inventory and I am trying to delete just one with a given title from the table film. This is my query at the moment but it throws back an error:
DELETE FROM inventory
WHERE film_id IN (SELECT film_id
FROM film
WHERE title = "ACADEMY DINOSAUR")
AND store_id = 1
LIMIT 1
I get this error:
Cannot delete or update a parent row: a foreign key constraint fails
Any help would be appreciated, thanks