Hello,
I have a task to solve a problem. I have four tables. 1 - Pub ,2 - Food , 3 - Accesories, 4 - Ingredients. I need to link together in this order: Pub -> Food -> ingredients -> Accesories.
So basicly one PUB can have MANY Food and ONE Food can have MANY ingredients and ONE ingredients can have MANY accesories...and i want that there will not be duplicate FOOD (one flour for example).
I tried with foreign keys no luck every time that error with IDENTITY. - > in database it is set to autoincreasement. I am using SQL 2012.
Wuchi