Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . Create a database called holy _ grounds 2 . Create the following tables based on the client s requirements: a . coffee _

1. Create a database called holy_grounds
2. Create the following tables based on the clients requirements:
a. coffee_inventory: This table will store information about all items in inventory.
i. sku: An alphanumeric SKU
ii. name: The brand and name of the coffee
iii. roast_type: The type of roast of each coffee (Dark,Medium, or Light)
iv. lbs_on_hand: Total pounds of coffee on hand (can be fractional)
v. organic: Only 2 values, either organic or not
vi. price_per_lb: price per pound of each coffee as a fractional value
b. sales_transactions: This table contains records of each purchase made
i. receipt_id: A number automatically assigned when a transaction is made. While this is a smaller company, they do have multiple locations and online sales. They complete a total of approximately 250 million transactions a year between these different revenue streams. This client likes to keep receipt records for multiple years.
ii. sale_amount: Amount of each purchase as a fractional value
iii. sale_type: The type of purchase made (Online or In-Store)
iv. transaction_date: The date and time a transaction occurs
c. Stores: This table hold information about all company stores where coffee is sold
i. store_id: a numeric identifier automatically assigned when each store is opened
ii. store_manager: The first and last name of each store manager.
iii. store_phone: Each stores phone number using format: (xxx) xxx-xxxx
iv. store_address: The stores physical address including street name and number
v. city: city in which the store is located
vi. zip: The stores 5-digit zip code
vii. state: two letter state abbreviation

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

Contemporary Issues In Database Design And Information Systems Development

Authors: Keng Siau

1st Edition

1599042894, 978-1599042893

More Books

Students also viewed these Databases questions

Question

Define induction and what are its objectives ?

Answered: 1 week ago

Question

Discuss the techniques of job analysis.

Answered: 1 week ago

Question

How do we do subnetting in IPv6?Explain with a suitable example.

Answered: 1 week ago

Question

Explain the guideline for job description.

Answered: 1 week ago

Question

What is job description ? State the uses of job description.

Answered: 1 week ago