Advertisement

09.07.2008 at 07:19PM PDT, ID: 23710953 | Points: 500
[x]
Attachment Details

Database table creation help

Asked by Papote in Access Architecture/Design, Microsoft Access Database, SQL Server 2005

Tags: , , ,

I am having a hard time trying to create tables for a database I am trying to create. I am starting in Access but eventually it will be ported to SQL, but the forms will be made in Access. I work for a health care organization and I have been given the task to create a database for the Central Kitchen. They prepare food for other institutions. The only information the other institutions give them is the amount requested from the menu and the Central kitchen prepares the food according to the amount they request and then each institution is in charge of preparing the trays.
Sounds simple enough. Problem is they have a 40 year old system that basically everyday they just cut from a form and post the amounts required.

The menu changes everyday according to a weekly cycle. Each year they create 3 cycles wich last a week (From Wednesday to Tuesday). In each cycle there is a different menu for each day of the week.

They have 11 different forms each one is for modified diets (breakfast, lunch, dinner, and cold food which include juices and deserts) with many specifications and one regular diet.
The food requisition form are dived in the following forms:
"      Regular diet which includes menu selection for breakfast, lunch and dinner.
"      Modified diet: Breakfast (Modifications include nonfat milk with salt, non fat milk, without salt, with water, no salt, etc&)
"      Cold diet: Breakfast (Includes: dairy products, juices, and fruits)
"      Modified diet: Lunch Farinaceous (containing flour; starchy)
"      Modified diet: Lunch Vegetables
"      Modified diet: Lunch Meats
"      Cold diet: Lunch (Includes: dairy products, juices, and fruits)
"      Modified diet: Dinner Farinaceous (containing flour; starchy)
"      Modified diet: Dinner Vegetables
"      Modified diet: Dinner Meats
"      Cold diet: Dinner (Includes: dairy products, juices, and fruits)

They need the total amounts for each item from each Hospital (Institution) they serve.

I created a table titled Food and there I include all the different types of foods with a field titled TypeOfFood and ModifiedDietPreparationMethod for the modified diets.

Food Table
      FoodID
      TypeOfFood
      MD (Boolean; if it is a modified diet or not)
      Rate
      Weight (weight of each ration)




I am having a hard time creating the order request form, so far I have the following:

OrderRequestHeader
      OrderRequestHeaderID
      OrderRequestDetailID (Foreign key)
      Date
      Cycle
      Institution
      TypeOfDiet (From one of the 11 forms listed earlier)
Diet (Wheter breakfast, lunch or dinner)

OrderRequestDetail
      OrderRequestDetailID
      OrderRequestHeaderID (Foreign key)
      Food
      Quantity
      MD (Boolean; if it is a modified diet or not)
      ModifiedDietPreperationMethod
      PreperationMethod (Mostly for the preparation method of meats and farinaceous)
      TypeOfFood
      Commentary (For any changes)

Menu Table
      MenuID
      Cycle
      Day
      Date
      Food
      Preperation
Diet (Wheter breakfast, lunch or dinner)
MD (Boolean; if it is a modified diet or not)
      ModifiedDietPreperationMethod
      TypeOfDiet (From one of the 11 forms listed earlier)


I am having a lot of trouble trying to create the menu table. It is just so the Central Kitchen can enter the daily menu for each cycle and each institution can view the menu and select the quantity, hence why I want to transfer the database to SQL, but leave Access for the forms and reports.

Any help anybody can offer will be greatly appreciated.







I noticed that what I had just wasnt working so I basically restructured a bit and started creating the following tables Menu tables, deleting the original Menu Table:

 MenuByCycle Table
      MenuByCycleID
      Year
      Cycle
      Day
      Date
      

MenuByCycleDetail
      MenuByCycleDetailID
      TypeOfDiet
      Food
      ModifiedDietPreperationMethod
      PreperationMethod (Mostly for the preparation method of meats and farinaceous)
Diet (Wheter breakfast, lunch or dinner)
MD (Boolean; if it is a modified diet or not)

      


Trying to normalize even more since each menu is different for the type of diet I tried creating another table MenuByType of Diet

MenuByTypeOfDiet
      MenuByType of DietID
      TypeOfDiet
      MenuByCycleDetailID


And  changing the other tables


MenuByCycle Table
      MenuByCycleID
      Year
      Cycle
      Day
      Date
      MenuByTypeOfDietID

      

MenuByCycleDetail
      MenuByCycleDetailID
      Food
      ModifiedDietPreperationMethod
      PreperationMethod (Mostly for the preparation method of meats and farinaceous)
Diet (Wheter breakfast, lunch or dinner)
MD (Boolean; if it is a modified diet or not)
MenuTypeofDietID

I think I am just making even a bigger mess&

In the end, I need the Central Kitchen to be able to post the menu for at least a week in advanced (1 cycle) and the other institutions be able to view the menu for each diet and daily just enter the quantity for each item.


I am just having a hard time trying to visualize how am I going to add multiple requests per type of diet and menu day in a table.
There are a lot of selections of food per day, some are default meaning that are prepared every day, like eggs, coffee, milk, and a substitute.
Start Free Trial
[+][-]09.07.2008 at 07:59PM PDT, ID: 22414409

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.07.2008 at 08:06PM PDT, ID: 22414439

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.08.2008 at 04:58AM PDT, ID: 22416371

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.08.2008 at 06:28AM PDT, ID: 22417016

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.08.2008 at 07:47AM PDT, ID: 22417894

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.08.2008 at 12:52PM PDT, ID: 22420909

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.08.2008 at 05:59PM PDT, ID: 22423450

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.08.2008 at 06:02PM PDT, ID: 22423480

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 02:35AM PDT, ID: 22425496

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 08:00AM PDT, ID: 22428099

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 09:50AM PDT, ID: 22429454

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 10:22AM PDT, ID: 22429835

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 10:39AM PDT, ID: 22430080

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 04:57PM PDT, ID: 22433547

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 05:22PM PDT, ID: 22433636

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 05:29PM PDT, ID: 22433672

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 05:37PM PDT, ID: 22433714

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 05:48PM PDT, ID: 22433765

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.10.2008 at 02:18AM PDT, ID: 22436531

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.10.2008 at 05:08AM PDT, ID: 22437408

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.10.2008 at 05:42AM PDT, ID: 22437671

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.10.2008 at 07:07AM PDT, ID: 22438469

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.10.2008 at 07:27AM PDT, ID: 22438675

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.10.2008 at 09:12AM PDT, ID: 22439941

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.10.2008 at 11:07AM PDT, ID: 22441177

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.10.2008 at 06:59PM PDT, ID: 22445272

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.11.2008 at 05:35AM PDT, ID: 22448974

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.11.2008 at 07:37AM PDT, ID: 22450343

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.14.2008 at 06:29PM PST, ID: 22965431

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628