Example: Mapping a Dimension
The following statements map the four levels of the STANDARD
hierarchy in the XADEMO.PRODUCT_AW
dimension to columns in the XADEMO_AW_VIEW_PRODUCT
dimension table. A long description attribute is mapped for each level.
execute cwm2_olap_table_map.Map_DimTbl_HierLevel
('XADEMO', 'PRODUCT_AW', 'STANDARD', 'L4',
'XADEMO', 'XADEMO_AW_VIEW_PRODUCT', 'L4', 'L3');
execute cwm2_olap_table_map.Map_DimTbl_HierLevelAttr
('XADEMO', 'PRODUCT_AW', 'Long Description', 'STANDARD', 'L4',
'Long Description', 'XADEMO', 'XADEMO_AW_VIEW_PRODUCT', 'PROD_STD_LLABEL');
execute cwm2_olap_table_map.Map_DimTbl_HierLevel
('XADEMO', 'PRODUCT_AW', 'STANDARD', 'L3',
'XADEMO', 'XADEMO_AW_VIEW_PRODUCT', 'L3', 'L2');
execute cwm2_olap_table_map.Map_DimTbl_HierLevelAttr
('XADEMO', 'PRODUCT_AW', 'Long Description', 'STANDARD', 'L3',
'Long Description', 'XADEMO', 'XADEMO_AW_VIEW_PRODUCT', 'PROD_STD_LLABEL');
execute cwm2_olap_table_map.Map_DimTbl_HierLevel
('XADEMO', 'PRODUCT_AW', 'STANDARD', 'L2',
'XADEMO', 'XADEMO_AW_VIEW_PRODUCT', 'L2', 'L1');
execute cwm2_olap_table_map.Map_DimTbl_HierLevelAttr
('XADEMO', 'PRODUCT_AW', 'Long Description', 'STANDARD', 'L2',
'Long Description', 'XADEMO', 'XADEMO_AW_VIEW_PRODUCT', 'PROD_STD_LLABEL');
execute cwm2_olap_table_map.Map_DimTbl_HierLevel
('XADEMO', 'PRODUCT_AW', 'STANDARD', 'L1',
'XADEMO', 'XADEMO_AW_VIEW_PRODUCT', 'L1', null);
execute cwm2_olap_table_map.Map_DimTbl_HierLevelAttr
('XADEMO', 'PRODUCT_AW', 'Long Description', 'STANDARD', 'L1',
'Long Description', 'XADEMO', 'XADEMO_AW_VIEW_PRODUCT', 'PROD_STD_LLABEL');