Grocery Store Data Model Barry Williams Principal Consultant June 15th. 2008 Customers Addresses PR customer_id Pk address_id customer_name line_1 line_2 DatabaseAnswers.org customer_phone customer_email date_became_customer city Suppliers zip_postcode supplier_id other_customer_details state_province_county supplier_address_id country supplier_name other_address_details Calendar contact_name supplier_phone supplier email PK day_date day_number other_details day_of_the_week Products Orders Customer_Addresses Employees product_id FR product_type FR supplier_id order_id M employee_id FR employee_address_id customer_address_id customer_id order_status_code FK order_day_date customer_id FR address_id employee_name product_name product_price date_from date_to employee_phone paid_for_yn other_employee_details product_description order_details other_details NOTES The Ref_Calendar Table could nclude derived fields called wednesday_yn and friday_yn to simplify the logic in checking. But derived fields should not be shown in a Logicai Data Model at this level. Order_Items Deliveries PF delivery_id FR delivery_status_code FR delivered by_employee_id FK order_id PF order_id PF product_id quantity delivery_date_time other_delivery_details 0000
Grocery Store Data Model Barry Williams Principal Consultant June 15th. 2008 Customers Addresses PR customer_id Pk address_id customer_name line_1 line_2 DatabaseAnswers.org customer_phone customer_email date_became_customer city Suppliers zip_postcode supplier_id other_customer_details state_province_county supplier_address_id country supplier_name other_address_details Calendar contact_name supplier_phone supplier email PK day_date day_number other_details day_of_the_week Products Orders Customer_Addresses Employees product_id FR product_type FR supplier_id order_id M employee_id FR employee_address_id customer_address_id customer_id order_status_code FK order_day_date customer_id FR address_id employee_name product_name product_price date_from date_to employee_phone paid_for_yn other_employee_details product_description order_details other_details NOTES The Ref_Calendar Table could nclude derived fields called wednesday_yn and friday_yn to simplify the logic in checking. But derived fields should not be shown in a Logicai Data Model at this level. Order_Items Deliveries PF delivery_id FR delivery_status_code FR delivered by_employee_id FK order_id PF order_id PF product_id quantity delivery_date_time other_delivery_details 0000
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
![using mysql workbench only: provide a code for
the construction of the below Tables, and set up
the relations, primary keys and foreign keys
Grocery Store Data Model
Barry Williams
Principal Consultant
Customers
Addresses
PK customer_id
address_id
June 15th. 2008
customer_name
line_1
DatabaseAnswers.org
customer_phone
line_2
customer_email
city
Suppliers
date_became_customer
zip_postcode
other_customer_details
Pk supplier_id
supplier_address_id
state_province_county
country
supplier_name
other_address_details
contact_name
Calendar
supplier_phone
Pk day_date
supplier_email
day_number
other_details
day_of_the_week
Products
Orders
Customer_Addresses
Employees
product_id
HO order_id
FR customer_id
FR order_status_code
FR order day_date
M customer_address_id
FK customer_id
FR address_id
FK product type
FR supplier_id
M employee_id
FR employee_address_id
employee_name
product_name
date_from
employee_phone
product_price
paid_for_yn
date_to
other_employee_details
product_description
order_details
other_details
NOTES
The Ref_Calendar Table could
include derived fields called
wednesday_yn and friday_yn
to simplify the logic in checking.
But derived fields should not be
shown in a Logicai Data Model
at this level.
Order_Items
Deliveries
PF order_id
PF delivery_id
FR delivery_status_code
FR delivered_by_employee_id
PF product_id
quantity
order_id
delivery_date_time
other_delivery_details](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Ffb05faf0-9c0c-4921-adb5-f1be4a660e0b%2Fb7b51316-6c57-40c3-9af2-0da89f332573%2Foatmqbe_processed.jpeg&w=3840&q=75)
Transcribed Image Text:using mysql workbench only: provide a code for
the construction of the below Tables, and set up
the relations, primary keys and foreign keys
Grocery Store Data Model
Barry Williams
Principal Consultant
Customers
Addresses
PK customer_id
address_id
June 15th. 2008
customer_name
line_1
DatabaseAnswers.org
customer_phone
line_2
customer_email
city
Suppliers
date_became_customer
zip_postcode
other_customer_details
Pk supplier_id
supplier_address_id
state_province_county
country
supplier_name
other_address_details
contact_name
Calendar
supplier_phone
Pk day_date
supplier_email
day_number
other_details
day_of_the_week
Products
Orders
Customer_Addresses
Employees
product_id
HO order_id
FR customer_id
FR order_status_code
FR order day_date
M customer_address_id
FK customer_id
FR address_id
FK product type
FR supplier_id
M employee_id
FR employee_address_id
employee_name
product_name
date_from
employee_phone
product_price
paid_for_yn
date_to
other_employee_details
product_description
order_details
other_details
NOTES
The Ref_Calendar Table could
include derived fields called
wednesday_yn and friday_yn
to simplify the logic in checking.
But derived fields should not be
shown in a Logicai Data Model
at this level.
Order_Items
Deliveries
PF order_id
PF delivery_id
FR delivery_status_code
FR delivered_by_employee_id
PF product_id
quantity
order_id
delivery_date_time
other_delivery_details
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY