Im new to SQL, and am using SQL Server Managmetn Studio V11
Im having trouble with my structure:
for example if I have a Table Fruit:
FruitID, Name , FamilyID, ColourID
Table Family
FamilyID, Name
Table AllowedColour
ID, FamilyID, ColourID
1, 1, 56
2, 1, 88
3, 1, 99
4, 2, 56
5, 2, 57
So in Allowed Colour
I list the Colours that a certain family can have.
How do I restrict the values entered in the Fruit
table so that only Allowed colours can be given to the fruit?