Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, yeah I (think I) get it... You only want to delete if the count doesn't match? right?
tMSSQLInput_1 : "select count(*) src_cnt from src_table" --> tSetGlobalVar1
tMSSQLInput_2 : "select count(*) trg_cnt from trg_table" --> tSetGlobalVar2
Basically your count results go into global vars and next after the counts have run... you use an if
In the --- if ---> you check the values which are set in the global var:
((Integer)globalMap.get("src_cnt")) <> ((Integer)globalMap.get("trg_cnt"))
Finally In the tRunJob call the job for deleting and (non) matching records.
I would just go for an inner join, the output ive added the trgt source too to make sure it was null when testing
Hi, yeah I (think I) get it... You only want to delete if the count doesn't match? right?
tMSSQLInput_1 : "select count(*) src_cnt from src_table" --> tSetGlobalVar1
tMSSQLInput_2 : "select count(*) trg_cnt from trg_table" --> tSetGlobalVar2
Basically your count results go into global vars and next after the counts have run... you use an if
In the --- if ---> you check the values which are set in the global var:
((Integer)globalMap.get("src_cnt")) <> ((Integer)globalMap.get("trg_cnt"))
Finally In the tRunJob call the job for deleting and (non) matching records.