I can see it both ways, but it's up to the poster. I will agree with
C, that he would be better off reading a book on relatational
databases, then he can decide how much he wants to normalize!

On Tue, Jan 27, 2009 at 1:21 AM, sallushan <[email protected]> wrote:
>
> To me it is a Many-To-Many relation.
>
> 1 Recipe can have many Ingredients
> AND
> 1 Ingredient can be in multiple Recipes
>
> Which obviously require a Junction Table.
>
> On Jan 27, 11:15 am, Cerebrus <[email protected]> wrote:
>> This is a common scenario...
>>
>> 1 Class can have many Students.
>> 1 Book can have many Authors.
>> ..
>> 1 Recipe can have many Ingredients.
>>
>> It's called a 1-Many relationship. I suggest you read up on
>> relationships in databases... there are entire books on the subject.
>>
>> On Jan 26, 9:42 pm, BrianP <[email protected]> wrote:
>>
>>
>>
>> > Hello,
>>
>> > I'm new to developing .net apps and database designing, so naturally I
>> > have a question.
>>
>> > A little background of what I want to do ... I want to have a table
>> > containing food ingredient information (Names, cost/unit of measure,
>> > etc.), and another table containing recipes. Each recipe will
>> > reference a variable number of ingredients.
>>
>> > What's the best way to go about storing this info in a database? I was
>> > initially thinking a table for ingredients and a table for recipes,
>> > but since the recipes will reference a variable number of ingredients,
>> > that presented a problem to me with my limited knowledge of database
>> > design.
>>
>> > Thanks in advance,
>> > Brian- Hide quoted text -
>>
>> - Show quoted text -

Reply via email to