Data Management –
Applications – VHT2
,Nora’s Bagel Bin Database Blueprints
1.
BAGEL ORDER
PK Bagel Order ID
PK Bagel ID
Order Date
First Name
Last Name
Address 1
Address 2
City
State
Zip
Mobile Phone
Delivery Fee
Bagel Name
Bagel Description
Bagel Price
Bagel Quantity
Special Notes
, BAGEL ORDER BAGEL ORDER LINE ITEM BAGEL
PK Bagel Order ID PK / FK Bagel Order ID PK Bagel ID
Order Date 1:M PK / FK Bagel ID M:1 Bagel Name
First Name Bagel Quanity Bagel Price
Last Name Bagel Description
Address 1
Address 2
City
State
Zip
Mobile Phone
Delivery Fee
Special Notes
Each attribute is assigned to the table based on its dependency. As Bagel Name, Description and Price depends on Bagel
ID and Order date, First name, Last name, Address, City, State, Zip, Mobile phone, Delivery fee and Special notes depends
on Bagel Order ID.
Bagel Order table is forming one to many relationship with Bagel Order Line Item table as one bagel order can have more
than one bagel items but bagel order id in the Bagel Order Line Item table only belongs to one bagel order id in Bagel
Order table, so the relationship is 1:M.
Bagel Order Line Item table is
forming many to one
relationship with Bagel table as
one bagel item in the Bagel
Order
Line Item table belongs to only
one bagel id, but a bagel can be
ordered by more than one
order, so the relationship is
Applications – VHT2
,Nora’s Bagel Bin Database Blueprints
1.
BAGEL ORDER
PK Bagel Order ID
PK Bagel ID
Order Date
First Name
Last Name
Address 1
Address 2
City
State
Zip
Mobile Phone
Delivery Fee
Bagel Name
Bagel Description
Bagel Price
Bagel Quantity
Special Notes
, BAGEL ORDER BAGEL ORDER LINE ITEM BAGEL
PK Bagel Order ID PK / FK Bagel Order ID PK Bagel ID
Order Date 1:M PK / FK Bagel ID M:1 Bagel Name
First Name Bagel Quanity Bagel Price
Last Name Bagel Description
Address 1
Address 2
City
State
Zip
Mobile Phone
Delivery Fee
Special Notes
Each attribute is assigned to the table based on its dependency. As Bagel Name, Description and Price depends on Bagel
ID and Order date, First name, Last name, Address, City, State, Zip, Mobile phone, Delivery fee and Special notes depends
on Bagel Order ID.
Bagel Order table is forming one to many relationship with Bagel Order Line Item table as one bagel order can have more
than one bagel items but bagel order id in the Bagel Order Line Item table only belongs to one bagel order id in Bagel
Order table, so the relationship is 1:M.
Bagel Order Line Item table is
forming many to one
relationship with Bagel table as
one bagel item in the Bagel
Order
Line Item table belongs to only
one bagel id, but a bagel can be
ordered by more than one
order, so the relationship is