Mint Classics Dataset Analysis
Project links
Skills
About this project
Project Overview: Analysis for Mint Classics Company
As part of a Coursera project utilizing a relational dataset provided by Mint Classics Company, I was tasked with conducting a data analysis to drive insights into product and warehouse management, with the ultimate goal of optimizing profitability by reducing costs.
EER Diagram:

Key Questions Addressed:
Methodology:
USE mintclassics; ## Calls for the database## Instead of making many queries and a visualization for each table I decided to extract all relevant data in one table for the analisis and visualizations.## Extracted data from products, ordersdetails and warehouses to show analysis filtering of warehouses usage and earnings from products on Tablau.SELECT p.productCode, p.productName, p.productLine, SUM(od.quantityOrdered) AS sales, ## Sums all sales for each product SUM((od.priceEach - p.buyPrice) * od.quantityOrdered) AS earnings, ## Sums the earnings for every product p.quantityInStock, w.warehouseName, ROUND (warehouse_usage / (w.warehousePctCap * 0.01)) AS warehouse_capacity, ## Extracts warehouse capacity from the usage and PctCap (I assume it is the percent of use). p.quantityInStock / (SUM(od.quantityOrdered) / 2.383) AS years_of_stock ## Extracts the amout of years the stock satisfies the demand.FROM orderdetails odJOIN products pUSING (productCode)## Joins orderdetails with products tableJOIN warehouses wUSING (warehouseCode)## Joins warehouse table.JOIN ( SELECT warehouseCode, SUM(quantityInStock) AS warehouse_usage ## Sums stock for all the products on each warehouse and extracts usage FROM products pp GROUP BY warehouseCode ## Helps to extract relevant data summarizing it by warehouses.) od USING (warehouseCode)## Joins the output to the table to use the usage of every warehouseGROUP BY productCode## Helps to extract relevant data summarizing it by products.ORDER BY earnings DESC## It is not crusial since we can sort the data in the visualizations, yet I wanted to show products from most to last lucrative.
Recommendations:
This data-driven approach aims to provide Mint Classics Company with actionable insights to enhance operational efficiency and maximize profitability keeping track of those measures.