Question: Data Coding for pgadmin 4 Part 2 HG Database ( File 2 ) The second client is a local coffee shop called Holy Grounds. Complete

Data Coding for pgadmin4
Part 2 HG Database (File 2)
The second client is a local coffee shop called Holy Grounds. Complete the following steps for this client:
Note: All database names, attribute names, and attribute names must appear exactly as given below.
Create a database called holy_grounds
Create the following tables based on the clients requirements:
coffee_inventory: This table will store information about all items in inventory.
sku: An alphanumeric SKU
name: The brand and name of the coffee
roast_type: The type of roast of each coffee (Dark,Medium, or Light)
lbs_on_hand: Total pounds of coffee on hand (can be fractional)
organic: Only 2 values, either organic or not
price_per_lb: price per pound of each coffee as a fractional value
sales_transactions: This table contains records of each purchase made
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.
sale_amount: Amount of each purchase as a fractional value
sale_type: The type of purchase made (Online or In-Store)
transaction_date: The date and time a transaction occurs
Stores: This table hold information about all company stores where coffee is sold
store_id: a numeric identifier automatically assigned when each store is
opened
store_manager: The first and last name of each store manager.
store_phone: Each stores phone number using format: (xxx) xxx-xxxx
store_address: The stores physical address including street name and
number
city: city in which the store is located
zip: The stores 5-digit zip code
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 Programming Questions!