In your sale
table, you have
CONSTRAINT sa_fk2 FOREIGN KEY (iName) REFERENCES Item (iName)
ON UPDATE CASCADE
While, you are creating the Item
table afterwards.
For creating the Copy
table, you need an index on the oQuantity
field in the Order
table.
INDEX `oQty` (`oQuantity`)
Adding the above to Order table gets you to create the tables.
Here's the sqlfiddle.