Ecommerce_Data_Anaysis_project

SQL Project: E-Commerce Sales and Customer Insights Analysis

Description

This project uses SQL to analyze the dataset of an e-commerce platform. The goal is to extract meaningful insights about customer behavior, product performance, seller activity, and order fulfillment. By answering critical business questions, this project helps in driving better decisions to optimize e-commerce operations.

Installation

To run this project on your machine, follow these steps using SQL Server Management Studio (SSMS):

  1. Install SQL Server and SSMS.
  2. Create a new database.
  3. Create tables using the schema provided below.
  4. Import the CSV files provided in the dataset folder into the respective tables. Note: If you are using SQL Server, you can also script out the database for easier setup and restore the provided database backup if available.

Schema Diagram

Schema Diagram Image Here Referance image

Database and Tools

License

You are free to use this dataset to build your own project and practice SQL skills.

Questions Answered

The following are a few of the questions that are answered in this project.

(check out the full SQL queries in the detailed article here):

  1. What are the unique states where sellers are located
  2. How many orders were shipped in 2019?
  3. Find the total sales amount for each product category
  4. Calculate the percentage of orders delivered on weekends
  5. Count the number of orders placed by customers from each city
  6. List of all orders with customer details and order status
  7. List of all products sold by a particular seller
  8. Total sales revenue by payment type
  9. Average review score per product
  10. Top 5 best-selling products
  11. Total number of orders by geolocation (city)
  12. Revenue breakdown by seller
  13. Percentage of orders delivered on time vs. late
  14. Calculate the number of orders per quarter in 2017
  15. Find the average number of items per order for each seller
  16. Calculate the percentage contribution to total revenue by each payment method
  17. Find the top 10 most sold products based on quantity
  18. Calculate the total revenue generated by each seller, and rank them by revenue
  19. Find the product category with the highest revenue contribution each month
  20. Identify products with a higher-than-average selling price in their respective category
  21. Find the average Review Score by Payment Type

Results

1. Unique States Where Sellers Are Located:

2. Count of Orders Shipped in 2018

3. Total Sales Amount by Product Category

4. Percentage of Orders Delivered on Weekends

5. Count of Orders Placed by Customers from Each City

6. List of All Orders with Customer Details and Order Status

7. List of All Products Sold by a Specific Seller

8. Total Sales Revenue by Payment Type

9. Average Review Score per Product Category

10. Top 5 Best-Selling Products

11. Total Number of Orders by Geolocation (City)

12. Revenue Breakdown by Seller

13. Percentage of Orders Delivered On Time vs. Late

14. Number of Orders per Quarter in 2017

15. Average Number of Items per Order for Each Seller

16. Revenue by Payment Type

17. Top 10 Most Sold Products

18. Total Revenue by Seller

19. Monthly Top Revenue Product Category

20. Higher-than-Average Price Products

21. Average Review Score by Payment Type