Thread: newbie
View Single Post
  #19 (permalink)  
Old 08-30-10, 01:12
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by twinkiejr View Post
Maybe I am doing this wrong should the foreign keys be placed from the inventory to the other tables?
no, that'd be wrong

you said you can still put any combination of the fields in the inventory table, so that means you haven't declared the FK from the inventory table to the year/variety table properly, because it's the year/variety table which controls the combinations
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote