Presentation on theme: "Frosted Stay Frosty! Ian Bickel AJ Rehn Lacey Williams Janice Barlow."— Presentation transcript:
Frosted Stay Frosty! Ian Bickel AJ Rehn Lacey Williams Janice Barlow
What is Frosted? Self-serve Cupcakery Freedom to create the perfect tasting cupcake through our unique creation and decoration process.
Floor Plan Bakery Retail Floor
Project Scenario We offer a relaxed, modern and social environment that boosts creativity through sweet treats; specifically, cupcakes. We strive to create a positive atmosphere to ensure the happiness, safety and overall satisfaction of our valued customers, employees and everyone in our Frosted family.
Objectives Our largest objective is to create a database that does not include data redundancies, maintains its data integrity, and includes all necessary entities in their most simplified normalized form.
Decoration Process The process of creating a self-serve cupcake includes: 1.Selecting cupcake batter flavor 2.Using automated frosting machines 3.Selecting favorite toppings 4.Purchasing your cupcake creation at our checkout counter
SDLC: Analysis Seven Tables of Frosted: Employee – to maintain our organizational structure Customer – to keep track of our customers Order – to link our customers with their orders OrderProduct – to determine quantity of products in each order Product – to keep track descriptions and selling costs of products Supply – to keep track of which products come from which vendors Vendor – to store vendor name and locations
Relational Diagram SDLC: Design
Normalized Dependency Diagram SDLC: Design
Entity Relationship Diagram SDLC: Design
Employee Table SDLC: Design
Customer Table SDLC: Design
Order Table SDLC: Design
Product Table SDLC: Design
OrderProduct Table SDLC: Design
Vendor Table SDLC: Design
Supply Table SDLC: Design
Drop Tables SDLC: Implementation SQL> DROP TABLE supply CASCADE CONSTRAINTS; Table dropped. SQL> DROP TABLE vendor CASCADE CONSTRAINTS; Table dropped. SQL> DROP TABLE orderproduct CASCADE CONSTRAINTS; Table dropped. SQL> DROP TABLE product CASCADE CONSTRAINTS; Table dropped. SQL> DROP TABLE orders CASCADE CONSTRAINTS; Table dropped. SQL> DROP TABLE customer CASCADE CONSTRAINTS; Table dropped. SQL> DROP TABLE employee CASCADE CONSTRAINTS; Table dropped.
Queries SDLC: Implementation Query 1: What customers (displayed by order#) has/have spent more than $2.00 on product# 08? Query 2: What products were not supplied by Shibby Sprinkles? Query 3: How many orders have been placed by Dylan Emde? Query 4: What is the total charge for each customer? Query 5: What customer(s) ordered a vanilla cake and spent more than $3.00? Query 6: What supplier(s) supplied the products Taylor Pace purchased?
Queries SDLC: Implementation SQL> --Oracle SQL, Group Project: Group 2 Frosted SQL> --BMIS441 Business Database Systems SQL> SQL> --Views SQL> SQL> CREATE OR REPLACE VIEW customer_receipt(order#, customer_name, order_date, product#, description, charge) 2 AS SELECT o.order#, c.first_name || ' ' ||c.last_name, order_date, p.product#, p.description, (quantity * retail_cost) 3 FROM customer c, orders o, product p, orderproduct op 4 WHERE c.customer# = o.customer# 5 AND o.order# = op.order#; View created. SQL> SQL> CREATE OR REPLACE VIEW customer_vendor(customer#, first_name, last_name, order#, product#, vendor#, vendor_name) 2 AS SELECT c.customer#, c.first_name, c.last_name, o.order#, p.product#, s.vendor#, v.vendor_name 3 FROM customer c, orders o, product p, orderproduct op, supply s, vendor v 4 WHERE c.customer# = o.customer# 5 AND o.order# = op.order# 6 AND op.product# = s.product# 7 AND s.vendor# = v.vendor#; View created.
Queries SDLC: Implementation SQL> --Q#1 SQL> --What customers (displayed by order#) has/have spent more than $2.00 on product# 08. SQL> SQL> SELECT customer_name, product#, COUNT(order#) as num_of_orders 2 FROM customer_receipt 3 WHERE charge > 2 4 AND product# = 08 5 GROUP BY customer_name, product#; CUSTOMER_NAME PRODUCT# NUM_OF_ORDERS ALEX MCKELVEY 8 2
Queries SDLC: Implementation SQL> --Q#2 SQL> --What products were not supplied by Shibby Sprinkles SQL> SQL> SELECT product.description AS Product 2 FROM PRODUCT, SUPPLY, VENDOR 3 WHERE product.product# = supply.product# 4 AND supply.vendor# = vendor.vendor# 5 AND vendor.vendor_name <> 'SHIBBY SPRINKLES'; PRODUCT STRAWBERRY FROSTING NUTELLA FROSTING MAPLE FROSTING TIGERS BLOOD FROSTING PEPPERMINT TOPPINGS BACON BITS SPRINKLES BANANAS 8 rows selected.
Queries SDLC: Implementation SQL> --Q#3 SQL> --How many orders have been placed by Dylan Emde? SQL> SQL> SELECT first_name, last_name, COUNT(orders.order#) AS num_of_orders 2 FROM CUSTOMER, ORDERS 3 WHERE customer.customer# = orders.customer# 4 AND customer.first_name = 'DYLAN' 5 AND customer.last_name = 'EMDE' 6 GROUP BY first_name, last_name; FIRST_NAME LAST_NAME NUM_OF_ORDERS DYLAN EMDE 2
Queries SDLC: Implementation SQL> --Q#4 SQL> --What is the total charge for each customer? SQL> SQL> SELECT customer_name, TO_CHAR(SUM(charge), '$999.99') "TOTAL" 2 FROM customer_receipt 3 GROUP BY customer_name; CUSTOMER_NAME TOTAL CARSON THOMPSON $91.08 COUNT SANCHEZ $22.77 DYLAN EMDE $91.08 ALEX MCKELVEY $ TAYLOR PACE $22.77
Queries SDLC: Implementation SQL> --Q#5 SQL> --What customer(s) ordered a vanilla cake with tigers blood frosting? SQL> SQL> SET LINESIZE 75 SQL> SET PAGESIZE 45 SQL> SELECT customer_name, description, TO_CHAR(charge, '99.99') AS charge 2 FROM customer_receipt 3 WHERE description = 'VANILLA CAKE' 4 AND charge > 3; CUSTOMER_NAME DESCRIPTION CHARGE DYLAN EMDE VANILLA CAKE 5.98 ALEX MCKELVEY VANILLA CAKE DYLAN EMDE VANILLA CAKE 5.98 CARSON THOMPSON VANILLA CAKE 5.98 ALEX MCKELVEY VANILLA CAKE 11.96
Queries SDLC: Implementation SQL> --Q#6 SQL> --What vendor(s) supplied the products Taylor Pace bought? SQL> SQL> SELECT DISTINCT vendor_name 2 FROM customer_vendor 3 WHERE first_name = 'TAYLOR' 4 AND last_name = 'PACE' 5 GROUP BY vendor_name; VENDOR_NAME SUGAR RUSHERS SQL> SQL> spool off
SDLC: Maintenance Routine check ups Updating system if business model / strategy changes Create a system that parses errors within data to create a self maintaining effort Collaboration with managers to ensure data is up to date and accurate Aim for continuous improvement and use feedback Maintaining a well structured database
VISIT US ONLINE
Frosted Stay frosty my friends! We hope to add you to our Frosted customer table soon!