in Technology by

How do you load only null records into target? Explain through mapping flow.

1 Answer

0 votes
by

Let us say, this is our source

Cust_id Cust_name Cust_amount Cust_Place Cust_zip
101 AD 160 KL 700098
102 BG 170 KJ 560078
NULL NULL 180 KH 780098

The target structure is also the same but, we have got two tables, one which will contain the NULL records and one which will contain non NULL records.

We can design the mapping as mentioned below.

SQ –> EXP –> RTR –> TGT_NULL/TGT_NOT_NULL
EXP – Expression transformation create an output port

O_FLAG= IIF ( (ISNULL(cust_id) OR ISNULL(cust_name) OR ISNULL(cust_amount) OR ISNULL(cust _place) OR ISNULL(cust_zip)), ‘NULL’,’NNULL’)
** Assuming you need to redirect in case  any of value is null

OR

O_FLAG= IIF ( (ISNULL(cust_name) AND ISNULL(cust_no) AND ISNULL(cust_amount) AND ISNULL(cust _place) AND ISNULL(cust_zip)), ‘NULL’,’NNULL’)
** Assuming you need to redirect in case all of  value is null

RTR – Router transformation two groups

Group 1 connected to TGT_NULL ( Expression O_FLAG=’NULL’)
Group 2 connected to TGT_NOT_NULL ( Expression O_FLAG=’NNULL’)

Related questions

0 votes
    How do you load first and last records into target table? How many ways are there to do it? Explain through mapping flows...
asked Mar 28, 2021 in Technology by JackTerrance
0 votes
    I have 100 records in source table, but I want to load 1, 5,10,15,20…..100 into target table. How can I do this? Explain in detailed mapping flow....
asked Mar 28, 2021 in Technology by JackTerrance
0 votes
    I have three same source structure tables. But, I want to load into single target table. How do I do this? Explain in detail through mapping flow....
asked Mar 28, 2021 by JackTerrance
0 votes
    I have two different source structure tables, but I want to load into single target table? How do I go about it? Explain in detail through mapping flow....
asked Mar 28, 2021 by JackTerrance
0 votes
    How do you load alternate records into different tables through mapping flow?...
asked Mar 28, 2021 in Technology by JackTerrance
0 votes
    How to join three sources using joiner? Explain though mapping flow....
asked Mar 28, 2021 by JackTerrance
0 votes
    How do you convert single row from source into three rows into target?...
asked Mar 28, 2021 by JackTerrance
0 votes
    How do you load more than 1 Max Sal in each Department through Informatica or write sql query in oracle?...
asked Mar 28, 2021 in Technology by JackTerrance
0 votes
    Which component do you need to use in order to read data line by line from an input flow ... entries into iterative global variables? tIterateToFlow tFileList tFlowToIterate tLoop...
asked Mar 24, 2021 in Technology by JackTerrance
0 votes
    Explain SCD TYPE 3 through mapping....
asked Mar 29, 2021 in Technology by JackTerrance
0 votes
    Explain in detail SCD TYPE 2 through mapping....
asked Mar 29, 2021 in Technology by JackTerrance
0 votes
    Explain in detail about SCD TYPE 1 through mapping....
asked Mar 29, 2021 in Technology by JackTerrance
0 votes
    When you select “Existing guests only” for SharePoint, how can you add a guest to an environment? Is this through the B2B option?...
asked Mar 10, 2021 in Technology by JackTerrance
0 votes
    How do you update the records with or without using Update Strategy?...
asked Mar 28, 2021 in Technology by JackTerrance
...