Skip to content

saiteja007-mv/-Target-Brazil-Ecommerce-Data-Analysis-using-SQL

Repository files navigation

🎯 Target Brazil E-commerce Data Analysis

πŸ“Œ Overview

This project conducts a comprehensive SQL analysis on e-commerce data from Target Brazil (2016-2018). The goal is to extract meaningful insights to guide strategic business decisions, including:

  • 🌍 Regional expansion
  • 🚚 Shipping optimization
  • πŸ’³ Payment method analysis
  • πŸ› Customer retention strategies

The entire analysis is performed using Google BigQuery.

πŸ”— Project Links

πŸ“Š Data Description

The dataset consists of 100,000+ orders placed in Brazil from 2016 to 2018, covering:

  • πŸ‘₯ Customers & Sellers
  • πŸ“¦ Order details & items
  • 🌎 Geolocation data
  • πŸ’° Payment information
  • 🏷 Product attributes
  • ⭐ Customer reviews

πŸ“‘ Datasets

The data is stored in 8 CSV files:

  1. πŸ›’ customers.csv - Customer details (location, ID, etc.)
  2. πŸͺ sellers.csv - Seller information
  3. πŸ“‹ order_items.csv - Order details (items, price, shipping, etc.)
  4. 🌍 geolocation.csv - Customer & seller location data
  5. πŸ’³ payments.csv - Payment details (type, value, installments, etc.)
  6. ✍️ reviews.csv - Customer feedback & ratings
  7. πŸ“¦ orders.csv - Order timestamps & statuses
  8. πŸ“œ products.csv - Product descriptions, weight, dimensions, etc.

πŸ” Analysis & Insights

The SQL analysis leverages advanced querying techniques such as:

  • πŸ“Œ Window functions
  • πŸ“Œ Common Table Expressions (CTEs)
  • πŸ“Œ Complex Joins

πŸ“ˆ Key Findings:

1️⃣ E-commerce Trends

  • πŸ“ˆ Orders grew steadily from 2016 to 2018.
  • 🎯 Peak order months: May, July, and August.
  • ⏳ Most orders are placed in the Afternoon (13:00 - 18:00 hrs).

2️⃣ Regional Order Trends

  • πŸ™ High customer density: Minas Gerais (MG) & Rio de Janeiro (RJ).
  • 🌍 Low customer density: Roraima (RR) & AmapΓ‘ (AP) - potential for targeted marketing.

3️⃣ Economic Impact & Spending Patterns

  • πŸ’° Order costs increased by 20% (2017-2018, Jan-Aug).
  • πŸ† Top spending states: SΓ£o Paulo (SP), Minas Gerais (MG), ParanΓ‘ (PR).
  • 🎯 Identified top 10 highest-spending customers for loyalty programs.

4️⃣ Shipping & Delivery Optimization

  • πŸš› Longest delivery times: Roraima (RR), AmapΓ‘ (AP), Amazonas (AM) (>23 days avg.)
  • πŸš€ Fastest deliveries: SΓ£o Paulo (SP), ParanΓ‘ (PR), Minas Gerais (MG) (<15 days avg.)
  • πŸ’² Highest freight costs: ParaΓ­ba (PB), Acre (AC), RondΓ΄nia (RO).

5️⃣ Payment Trends

  • πŸ’³ Credit Cards dominate across all years.
  • 🎟 Voucher usage is declining from 2017 onwards.
  • πŸ”„ Orders with 1-10 installments are most common; very few use >10 installments.

πŸ›  Technologies Used

  • πŸ’Ύ SQL (Google BigQuery Legacy SQL)
  • ☁️ Google BigQuery (Cloud-based Data Analysis)
  • πŸ“Š Data Visualization (Tableau, Google Data Studio)

πŸ“‚ Key Files

  • πŸ“ SQL Target Data Analysis.sql - Contains 50+ SQL queries used in the project.
  • πŸ“‘ Target SQL Business Case.pdf - Visual summary of insights & trends.
  • πŸ“˜ Project Target SQL Description.pdf - Detailed project description & objectives.

πŸš€ Future Work

  • 🏎 Enhance Delivery Optimization: Reduce delivery times in delayed regions.
  • πŸ’³ Improve Payment Strategies: Address declining voucher usage, promote installment-based purchases.
  • 🌍 Regional Expansion: Identify opportunities in states with fewer customers.
  • 🎯 Personalized Marketing: Use customer spending insights for targeted campaigns.

πŸ“¬ Contact

For questions, feedback, or collaboration opportunities, feel free to reach out:


πŸ“Š This project showcases data-driven decision-making for e-commerce growth and optimization using SQL & BigQuery. πŸš€

About

πŸ“Š Target Brazil E-commerce Data Analysis - This project analyzes 100K+ orders from Target Brazil (2016-2018) using BigQuery SQL to extract insights on regional expansion, shipping, payments, and customer trends. πŸš€ Leveraging CTEs, window functions & joins, it provides data-driven recommendations for business growth. πŸ“ˆπŸ’‘

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors