Notes

Data Model

Tables backing Quarterly Sales Report

orders

Fact table of individual orders

ColumnTypeKey
order_id INTEGER PK
customer_id INTEGER FK → customers.customer_id
order_date DATE
region VARCHAR
product_line VARCHAR
amount DECIMAL

customers

Dimension table of customer accounts

ColumnTypeKey
customer_id INTEGER PK
name VARCHAR
segment VARCHAR