etl - Sparse lookup for tracking used records -
i have scenario have claim application table , application claimant table. need sparse application claimant id application claimant table using ssn key. problem there multiple application claimant ids same ssn. pull ones not used in claim_application table. using sparse below query.
select ssn, claim_application_claimant_id claim_application_claimant orchestrate.claim_application_claimant_id not in ( select claim_application_claimant_id claim_application )
but when going map key expression in lookup stage, throwing below error.
key expression cannot set on key columns of link.the connected stage defines key lookup
what issue here?
i baffled please explore these options.
in nested query add distinct clause , clause equate ssn between both tables
try alternate approach involving use of joins.
try using sql minus operator if columns equal in number
Comments
Post a Comment