Table Design

I am designing a food database. The purpose of the database is to maintain the data used to track the dates on which meals, snacks, etc. were made. A snack can be a left over meal plus a single ingredient. I only need help with some table names. I am not working on the field names yet. Please comment on the proposed tables.

Here are the tables:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
That's not really much to go on. From your writeup, the only real entities we know are Meals, Snacks, and Ingredients, and that a Snack could possibly consist of a Meal plus one or more Ingredients. From that, we could derive the following as a start:


Meal_Ingredient would be a Join table to associate all the Ingredients needed for a Meal, assuming (of course) that a Meal consists entirely of Ingredients.

Since a Snack could consist of a Meal plus one or more Ingredient:


Snack_Items is probably a poor choice for this table name, and I'm sure you could come up with something better. The gist of this would be that a Snack would consist of several "items", and one of those could be a Meal - so do you link to a record from the Meal table, or do you simply list out the Ingredients for a Snack (which would, essentially, duplicate a Meal and add one or more Ingredients to it).

But again, I think you need to flesh out your overall idea a bit more before you can get to the point of table design.

Also, you mentioned Book and Recipe, but there's no information regarding how those fit into your design, so we cannot include them.
Scott PletcherSenior DBACommented:
Technically you should be dealing with "entities" and not "tables" at this point, since you should be in the logical design phase rather than the physical design phase.  That is more than just semantics.  It's integral and fundamental to a proper design.

Single or plural names is up to you, but be consistent.  Either all singular or all plural, not a mix.

Also, be consistent on other naming when possible.  For example:


but only if that is an accurate reflection of the actual data, of course.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mark01Author Commented:
Thank you, Scott McDaniel and ScottPletcher.
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Jeffrey CoachmanMIS LiasonCommented:
A snack can be a left over meal plus a single ingredient.
In general "food service" terms, this is to broad...

If a snack can be a "Meal" + an ingredient, ...then it is really a "meal".
(or are we talking about partial or leftover meals?)

How can you call a full meal (Meat, Veg, Starch) plus another ingredient (Ice cream, ...for example), ...a "Snack"?

As the two experts above ave stated, really need to iron all of this out first.

A snack can be a left over meal plus a single ingredient.
...and what else can a snack be...?
You need to clearly define what a Meal, snack, ingredient is:
A Meal?
A meal + an ingredient?
an ingredient alone?
Up to two ingredients?
What about things like a bag of potato chip? (since this is not a meal, or an ingredient, it still a "snack")

You need to clearly define what each entity is and if it can contain other entities...

So perhaps you could give us more detail please?


Mark01Author Commented:
Jeff, I appreciate your comments. My statement about a snack being composed of a meal plus an ingredient was  incorrect. I meant that a snack can be composed of a quantity of a leftover recipe plus another ingredient. I am not explaining this well so here is an example. A snack can be 2 cups of fruit salad and 1 tablespoon of ice cream.

My goal of this question was to check to see if I was on the right track with the early formation of the entities. The question was answered in 20 minutes. I was surprised that I received excellent answers so quickly.
Jeffrey CoachmanMIS LiasonCommented:
...ok great...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.