I am new at databases and have a question about deleting data. I want to delete a row from one table, while that table is linked to 2 other different tables.
see pictures of the table:
 
 
 
 

I tried this code, but it gave me an error:
delete jbsupplier,jbitem 
from jbitem 
inner join jbsupplier 
inner join jbcity  
where jbitem.supplier=jbsupplier.id 
    and jbsupplier.city=jbcity.id;
ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails (`louhj600`.`jbitem`, CONSTRAINT `fk_item_supplier` FOREIGN KEY (`supplier`) REFERENCES `jbsupplier` (`id`))
Can anyone give me som advice and help, please.
Thank in advance /Louise
 
     
    