Merge branch 'main' into dwh-modeling-basics
This commit is contained in:
+32
-8
@@ -475,14 +475,38 @@ quadrantChart
|
|||||||
- `fact_sales` + `dim_*` → `mart_daily_sales`.
|
- `fact_sales` + `dim_*` → `mart_daily_sales`.
|
||||||
|
|
||||||
```mermaid
|
```mermaid
|
||||||
flowchart LR
|
flowchart TD
|
||||||
STG[stg.orders_raw] --> ODS[ods.orders]
|
%% STG
|
||||||
ODS --> DDS[dds.fact_sales]
|
STG_PROD[stg.products_raw]
|
||||||
dds.dim_customer --> DDS
|
STG_CUST[stg.customers_raw]
|
||||||
dds.dim_product --> DDS
|
STG_ORD[stg.orders_raw]
|
||||||
dds.dim_date --> DDS
|
STG_ITEMS[stg.order_items_raw]
|
||||||
DDS --> DM[mart_daily_sales]
|
|
||||||
DM --> BI[Power BI]
|
%% ODS
|
||||||
|
ODS_PROD[ods.products]
|
||||||
|
ODS_CUST[ods.customers]
|
||||||
|
ODS_ORD[ods.orders]
|
||||||
|
ODS_ITEMS[ods.order_items]
|
||||||
|
|
||||||
|
%% DDS
|
||||||
|
DIM_PROD[dds.dim_product]
|
||||||
|
DIM_CUST[dds.dim_customer]
|
||||||
|
DIM_DATE[dds.dim_date]
|
||||||
|
FACT_SALES[dds.fact_sales]
|
||||||
|
|
||||||
|
%% DM / BI
|
||||||
|
DM_SALES[dm.mart_daily_sales]
|
||||||
|
BI[BI / Power BI]
|
||||||
|
|
||||||
|
%% Потоки данных
|
||||||
|
STG_PROD --> ODS_PROD --> DIM_PROD --> DM_SALES
|
||||||
|
STG_CUST --> ODS_CUST --> DIM_CUST --> DM_SALES
|
||||||
|
|
||||||
|
STG_ORD --> ODS_ORD --> FACT_SALES --> DM_SALES
|
||||||
|
STG_ITEMS --> ODS_ITEMS --> FACT_SALES
|
||||||
|
DIM_DATE --> FACT_SALES
|
||||||
|
|
||||||
|
DM_SALES --> BI
|
||||||
```
|
```
|
||||||
|
|
||||||
### **Готовые SQL-скрипты**
|
### **Готовые SQL-скрипты**
|
||||||
|
|||||||
Reference in New Issue
Block a user