Type 2 Dimension Logic In Informatica

        This article will show a simple logic do the incremental loading of Type 2 dimension tables in Informatica.
        1. Extract the changed data from the source to temp table.
        There are several ways to do this. This article will be added later.
        2. Load data from temp table to target table.
        First, we have to apply the same logic as the initial mappings(To do the expressions, lookup, filter and so on) and add a Expression as the same structure as the Target table.
        Second, lookup the Target table by the condition tmp.INTEGRATION_ID=tgt.INTEGRATION_ID,tmp.DATASOURCE_NUM_ID=tgt. DATASOURCE_NUM_IDand SESSIONSTARTTIME between tgt.EFF_FROM_DT and EFF_TO_DT
        Third, IIF(ISNULL(LKP_ROW_WID),'I',IIF(LKP_ETL_PROC_WID=ETL_PROC_WID,'X',IIF(VAR_ATTR_CHANGED = 0,'X',IIF(TRUNC(LKP_W_INSERT_DT) =TRUNC(SESSSTARTTIME),'U','B'))))

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章