年维度是日期维度的子集。annual_customer_segment_fact是唯一用到annual_order_segment_dim表的表。...);
insert into annual_order_segment_dim values (1, 'project alpha', 'bottom', 0.01, 2500.00, 1, '1900...insert into annual_order_segment_dim values (3, 'project alpha', 'mid-low', 3000.01, 4000.00, 1, '1900...insert into annual_order_segment_dim values (5, 'project alpha', 'mid_high', 5500.01, 6500.00, 1, '1900...注意,这里是按客户代理键customer_sk分组求和来判断分段,实际情况可能是以customer_number进行分组的,因为无论客户的scd属性如何变化,一般还是认为是一个客户。
3.