Wikipedia中的定义: Dimension is a term in data management and data warehousing that refers to logical groupings of data such as geographical location, customer information, or product information.
Slowly Changing Dimensions (SCD) are dimensions that have data that slowly changes.
Row_Key Supplier_key Supplier_Code Supplier_Name Supplier_State Start_Date End_Date Current Indicator 1 001 ABC001 Phlogistical Supply Company CA 22-Dec-2004 15-Jan-2007 N 2 001 ABC001 Phlogistical Supply Company IL 15-Jan-2007 1-Jan-2099 Y
其中Row_Key和 Current Indicator字段是可有可无的,加上去更方便,毕竟维度表的数据都不大,多点冗余字段不占太大空间但能提高查询效率。 这种设计模式下事实表应以Supplier_key为外键,虽然这个字段不能唯一标识一条维度数据,从而形成了事实表与维表多对多的关系,因此在做事实和维度做关联时应加上时间戳字段(或Indicator字段)。