Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Our business sells cupcakes. We sell inside the store We sell at drive - by window We sell on - line All online orders must

Our business sells cupcakes.
We sell inside the store
We sell at drive-by window
We sell on-line
All online orders must be paid online
All online orders are delivered
All drive-by window orders are paid at the drive-by window
All drive-by window orders are picked up at the drive-by window
All in-store purchases are paid in the store and items picked up in the store
Our vendors supply the ingredients we need to make cup cakes
Our vendors invoice us and we pay them
Any given customer may have many orders, and each order may have many payments (since some large orders need to be put on multiple cards, for instance).
For any payment, there can only be one order--and the order must exist for a payment to be entered.
For any order, there can only be one customer--and the customer must exist before an order is placed.
For customers, we keep track of - all customers by type (online, drive-by, and in-store), each order (online, drive-by, and in-store), each payment (online, drive-by, and in-store).
For our vendors, we keep track of the inventory they provide, their billing, and our payments.
We need the ERD for everything listed above however, for our database in this phase, we need the following:
For each customer, we record:
a unique customer_id (PK)
customer's full_name (required)
phone_number (required)
email (required)
notes
For each order, we record:
a unique order_id (PK)
customer who placed the order (FK)(required)
type of cupcake (just a text description)(required)
number of cupcakes (required)
price of each cupcake in the order (required)
Order type (online, drive-by, or in-store)
notes
For each payment, we record:
a unique payment_id (PK)
order to which payment belongs (FK)(required)
payment_method (required)
amount (required)
notes

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago