cismajor97
Weaksauce
- Joined
- Mar 23, 2006
- Messages
- 88
This is the scenario. I'm creating an inventoy database for the schools that I am assigned to. The inventory on paper works like this. There is the county level, the region level and the individual school level. In this case there are 8 schools with 1 of the 8 schools labeled as the main school for that region, we call it the PAU. When an order for "widgets" is placed (in this case we will use 8), it comes from the PAU location and it is sent to the County office. The County receives the order that is sent to the main warehouse and the 8 widgets are delivered to the PAU location for that region. Which in turn will be sent to the 7 other sites in that region.
Now here is the tricky part, how would I design my database table to display the PAU site received the 8 widgets and then in turn the widgets have been distributed to their respective school sites?
So far my purchase order database table looks like this:
PO Table
---------------------
PO ID - PK
Pau ID - FK
Name
Item ID - FK
VendorID - FK
PAU Table
---------------------
PAU ID - PK
Name
Vendor Table
----------------------
Vendor ID - PK
Name
Address
etc
Items Table
-----------------------
Items ID - PK
Price
Qty
Unit
Extended Price
Now here is the tricky part, how would I design my database table to display the PAU site received the 8 widgets and then in turn the widgets have been distributed to their respective school sites?
So far my purchase order database table looks like this:
PO Table
---------------------
PO ID - PK
Pau ID - FK
Name
Item ID - FK
VendorID - FK
PAU Table
---------------------
PAU ID - PK
Name
Vendor Table
----------------------
Vendor ID - PK
Name
Address
etc
Items Table
-----------------------
Items ID - PK
Price
Qty
Unit
Extended Price