View Single Post
Old 11-30-2012, 03:32 PM   PM User | #3
guelphdad
Super Moderator


 
guelphdad's Avatar
 
Join Date: Mar 2006
Location: St. Catharines, Ontario Canada
Posts: 2,629
Thanks: 4
Thanked 147 Times in 138 Posts
guelphdad will become famous soon enoughguelphdad will become famous soon enough
You are missing the columns storeid and itemcode in the Orders table.
You actually have to create them in order to make a foreign key on them.

there is also no data type of IDENTITY in mysql. I believe that is Oracle or SQL Server that supports that type.
guelphdad is offline   Reply With Quote
The Following 2 Users Say Thank You to guelphdad For This Useful Post:
hiya1992 (11-30-2012), zergi (11-30-2012)