Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!