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 pgadmin
Part HG Database File
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 holygrounds
Create the following tables based on the clients requirements:
coffeeinventory: This table will store information about all items in inventory.
sku: An alphanumeric SKU
name: The brand and name of the coffee
roasttype: The type of roast of each coffee DarkMedium or Light
lbsonhand: Total pounds of coffee on hand can be fractional
organic: Only values, either organic or not
priceperlb: price per pound of each coffee as a fractional value
salestransactions: This table contains records of each purchase made
receiptid: 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 million transactions a year between these different revenue streams. This client likes to keep receipt records for multiple years.
saleamount: Amount of each purchase as a fractional value
saletype: The type of purchase made Online or InStore
transactiondate: The date and time a transaction occurs
Stores: This table hold information about all company stores where coffee is sold
storeid: a numeric identifier automatically assigned when each store is
opened
storemanager: The first and last name of each store manager.
storephone: Each stores phone number using format: xxx xxxxxxx
storeaddress: The stores physical address including street name and
number
city: city in which the store is located
zip: The stores 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
