Skip to content

Create and build an database, to capture and store all important data. Plus to create a table to be able to know when its time to order new stock.

Notifications You must be signed in to change notification settings

allienka/Pizzeria-SQL-Data-Analysis

Repository files navigation

Pizzeria-SQL-Data-Analysis

aim of this project is to work with purchased data, build a derived table, and calculate KPIs
based on the datasets provided

Requrements

Create and build an database, to capture and store all important data.
Create a table to be able to know when its time to order new stock.

Main areas of focus:
-orders
-stock control
-Staff

Stock control requirements
client wants to be able to know when its time to order new stock
To do this we need more information about:

  • what ingredients go into each pizza
  • their quantity based on the size of pizza
  • the existing stock level
    We will assume the lead time for delivery by suppliers is the same for all ingredients

Order Data Required:
• Item name
• Item price
• Quantity
• Customer name
• Delivery address

Inventory management:

  • total quantity by ingredient
  • total costs of ingredients
  • calculated cost if pizza
  • percentage stock remaining by ingredients

PREREQUISITES

  • Install MySQLWorkbench or Xampp
  • Any Editor (Preferably VS Code or Sublime Text)

Languages and Technologies used:

  • XAMPP or MySQL Workbench
  • MySQL
  • Tableau public

Fields in datasets

ORDERS

Row ID int pk
Order ID varchar(10)
Created at datetime
Quantity int
Delivery boolean
Cust_id int fk
Add_id int fk
Item-id int fk

CUSTOMERS

Cust_id int pk
Cust_ firstname varchar(50)
Cust_lastname varchar(50)

ADDRESS

Add_id int pk
Delivery address 1 varchar(200)
Delivery address 2 varchar(200) NULL
Delivery city varchar(50)
Delivery zip code varchar(20)

ITEM

Item_id varchar(10) pk
Item name varchar(50)
Item category varchar(50)
Item size varchar(20)
Item price decimal(5,2)

INGREDIENT

Ing_id varchar(10) pk
Ing_name varchar(20)
Ing_weight int
Ing_meas varchar(20)
Ing_price decimal (5,2)

RECIPE

Row_id int pk
Recipe_id varchar(20) fk
Ing_id varchar(10) fk
Quantity int

INVENTORY

Inv_id int pk
Item_id varchar(10) fk
Quantity

ROTA

Row_id intpk
Rota_id int
Date date fk
Shift_id int fk
Staff_id int fk

STAFF

Staff_id varchar(20) pk
First_name varchar(20)
Last_name varchar(20)
Position varchar(20)
Hourly_rate decimal (5,2)

SHIFT

Shift_id pk
Day_of_week varchar(10)
Start_time time
End_time time

DASHBOARDS

Screenshot 2023-06-08 104125

Screenshot 2023-06-08 104137

Screenshot 2023-06-09 104532

Screenshot 2023-06-09 104522

About

Create and build an database, to capture and store all important data. Plus to create a table to be able to know when its time to order new stock.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published