Considering there is a data warehouse contains one fact table and three dimension tables.
Fact table:
- fact_orders
Dimension tables:
- dim_user
- dim_product
- dim_date
All the data of these tables are extracted from our business systems.
In the business system, the user has many attributes, some of which could change upon time(mobile
, avatar_url
, nick_name
, status
), some others won't change once the record is created(id
,gender
,register_channel
).
So generally in the dim_user
table, which fields should we use and why?