HMVhmantovani
Back to Portfolio
Data Analytics & SQL

SQL Sales Analytics Dashboard

PostgreSQLSQLWindow FunctionsCTEsData ModelingAnalytics

Overview

A comprehensive SQL-only analytics project demonstrating mastery of relational database querying, from basic aggregations to advanced window functions and cohort analysis on a structured sales dataset.

The Challenge

Translate business questions — revenue trends, customer retention, product performance, and regional breakdowns — into clean, efficient SQL queries that a stakeholder can read, audit, and extend without Python or BI tooling.

The Solution

Designed a normalized relational schema for the sales domain. Used CTEs for query modularity, window functions for rankings and running totals, and conditional aggregations for pivot-style reporting. Built a suite of analytical queries covering KPIs, cohorts, and performance rankings.

Results & Impact

A fully documented SQL analytical suite ready for integration with any BI tool (Tableau, Power BI, Metabase). Demonstrates the ability to deliver insights through pure SQL — the most universally required data skill in corporate environments.

Tech Stack

PostgreSQLSQLWindow FunctionsCTEsData ModelingAnalytics
GitHub — Coming Soon