https://github.com/keshab5300/jenson-usa-mysql-analysis
This repository contains SQL queries designed for data analysis at Jensons USA, an online cycling store. The queries focus on optimizing store performance, enhancing customer experience, and improving inventory management by analyzing sales data, customer behavior, and staff performance to provide actionable insights for business growth.
https://github.com/keshab5300/jenson-usa-mysql-analysis
mysql sql
Last synced: 4 months ago
JSON representation
This repository contains SQL queries designed for data analysis at Jensons USA, an online cycling store. The queries focus on optimizing store performance, enhancing customer experience, and improving inventory management by analyzing sales data, customer behavior, and staff performance to provide actionable insights for business growth.
- Host: GitHub
- URL: https://github.com/keshab5300/jenson-usa-mysql-analysis
- Owner: Keshab5300
- License: mit
- Created: 2025-02-24T10:43:32.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-24T10:51:03.000Z (4 months ago)
- Last Synced: 2025-02-24T11:40:07.522Z (4 months ago)
- Topics: mysql, sql
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jenson USA SQL Analysis Project
## Overview
This project focuses on analyzing Jenson USA's dataset to extract insights on customer behavior, staff performance, inventory management, and store operations through SQL queries. The analysis aims to inform strategic decisions and enhance operational efficiency.## Dataset
[Jenson USA SQL Dataset](https://drive.google.com/drive/folders/1feFkClnYME7Be3kjmz-TD2PV1uVkXNAN)The dataset includes information about products, customers, orders, staff, and sales.
## Queries
The analysis involves executing the following SQL queries:1. Find the total number of products sold by each store along with the store name.
2. Calculate the cumulative sum of quantities sold for each product over time.
3. Find the product with the highest total sales (quantity * price) for each category.
4. Find the customer who spent the most money on orders.
5. Find the highest-priced product for each category name.
6. Find the total number of orders placed by each customer per store.
7. Find the names of staff members who have not made any sales.
8. Find the top 3 most sold products in terms of quantity.
9. Find the median value of the price list.
10. List all products that have never been ordered (use EXISTS).
11. List the names of staff members who have made more sales than the average number of sales by all staff members.
12. Identify the customers who have ordered all types of products (i.e., from every category).
13. For the complete SQL queries, please refer to the attached PDF document in the project repository.## MySQL Features Used
The following MySQL features were utilized to execute the queries:- **SELECT Statement:** To retrieve specific columns and data from the database.
- **JOIN Operations:** To combine rows from different tables based on related columns for comprehensive analysis.
- **GROUP BY:** To aggregate data for calculations like totals and averages.
- **HAVING Clause:** To filter groups based on aggregate functions, ensuring accurate analysis.
- **COUNT() Function:** To count the number of records or rows that meet specified criteria.
- **SUM() Function:** To calculate the total sales and quantities.
- **CROSS JOIN and EXISTS:** To handle queries that require checking for conditions across multiple tables.
- **MEDIAN Calculation:** To determine the middle value in a set of prices.
- **Subqueries:** To execute complex queries that depend on results from other queries.
## Key Insights
- Identifying products with the highest sales and customers who spend the most helps in targeting marketing efforts and optimizing inventory.
- Finding staff members who are underperforming can guide training and incentives to improve overall sales.
- Monitoring cumulative sales data and top products ensures inventory is aligned with demand.
## Recommendations
- Training Programs: Provide training for staff with no sales and reward high performers.
- Targeted Marketing: Create personalized offers for top customers and promote top-selling products.
- Inventory Management: Discontinue products that have never been ordered and ensure top products are always in stock.