Hello everybody,
I'm using the schema workbench to create a snowflake schema.
The tables I have are:
Fact_table, dim_brand_model, dim_brand, dim_group
linked to each others like this:
FT_IMMAT (BRAND_MODEL_ID FK) <----> DIM_BRAND_MODEL(BRAND_MODEL_ID PK, BRAND_ID FK) <----> DIM_BRAND(BRAND_ID PK, GROUP_ID FK) <----> DIM_GROUP(GROUP_ID PK)
I am able to make the relation between the three first tables using the following code but can't create the relation between the dim_brand and the dim_group
Any one has faced the same problem before or has any information about how to make a snowflake schema?
I appreciate any help
Thank you all
I'm using the schema workbench to create a snowflake schema.
The tables I have are:
Fact_table, dim_brand_model, dim_brand, dim_group
linked to each others like this:
FT_IMMAT (BRAND_MODEL_ID FK) <----> DIM_BRAND_MODEL(BRAND_MODEL_ID PK, BRAND_ID FK) <----> DIM_BRAND(BRAND_ID PK, GROUP_ID FK) <----> DIM_GROUP(GROUP_ID PK)
I am able to make the relation between the three first tables using the following code but can't create the relation between the dim_brand and the dim_group
Code:
<Schema name="immat">
<Cube name="cube_immat" visible="true" cache="true" enabled="true">
<Table name="ft_immat">
</Table>
<Dimension type="StandardDimension" visible="true" foreignKey="brand_model_id" highCardinality="false" name="Dim brand_model">
<Hierarchy name="Brand" visible="true" hasAll="true" primaryKey="brand_model_id" primaryKeyTable="dim_brand_model">
<Join leftKey="brand_id" rightKey="brand_id">
<Table name="dim_brand_model">
</Table>
<Table name="dim_brand">
</Table>
</Join>
<Level name="Brand" visible="true" table="dim_brand" column="brand_id" type="String" uniqueMembers="false" levelType="Regular" hideMemberIf="Never">
</Level>
</Hierarchy>
</Dimension>
....
</Cube>
</Schema>
I appreciate any help
Thank you all