This project analyzes customer shopping behavior using PostgreSQL. The objective is to identify revenue drivers, customer preferences, payment trends, demographic patterns, and shopping mall performance through SQL-based analysis.
The dataset contains transaction-level shopping data, including:
- Customer ID
- Gender
- Age
- Product Category
- Quantity Purchased
- Price
- Payment Method
- Invoice Date
- Shopping Mall
- SELECT
- COUNT
- DISTINCT
- SUM
- AVG
- GROUP BY
- ORDER BY
- LIMIT
- EXTRACT
- TO_CHAR
- Aggregate Functions
- How many unique customers made purchases?
- Which category generated the highest revenue?
- Which payment method was used most frequently?
- What is the average spending amount by gender?
- Which shopping mall generated the highest revenue?
- How did sales revenue vary across different months?
- Who are the top 5 customers by spending?
- How does revenue contribution differ between genders?
- What is the average customer age for each product category?
- Which payment methods generated the highest revenue?
- The dataset contains 99,457 unique customers.
- Clothing generated the highest revenue, contributing 11,399,679.04 in sales.
- Cash was the most frequently used payment method with 44,447 transactions.
- Cash also generated the highest revenue contribution of 112,832,243.02.
- January recorded the highest monthly sales revenue of 28,891,525.59.
- Female customers generated 150,207,136.02 in revenue, outperforming male customers.
- Mall of Istanbul generated the highest total sales revenue of 50,872,481.68.
- Average customer age remained consistent across product categories at approximately 43 years.
- PostgreSQL
- SQL
- GitHub
customer-shopping-analysis/
│
├── customer_shopping_data.csv
├── shopping_analysis.sql
├── insights.md
├── README.md
└── screenshots/
Sak_