A mini project to analyze sales, customers, and payments using PostgreSQL.
schema/β DDL scripts for all tablesdata/β insert scripts for sample dataqueries/β analysis queries sql
- Customer & order management schema
- Monthly sales trends
- Top products & categories
- Customer ranking & order frequency
- Payment method success ratio
- Advanced queries using Window functions & Subqueries
- PostgreSQL 17
- SQL only used (no external framework)
- Clone repo
git clone https://github.com/yourusername/sales-analysis-postgres.git cd sales-analysis-postgres