on 08-25-2015 12:19 PM
Hello Experts,
Please explain the below question
How we can Insert/Update with out using table comparison?
Thanks in advance.
First you have to find the decisional factor which will do your inserts. Then, in a separate dataflow, exclude the inserts with a left outer join and use MAP OPERATION transform to update.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can we not do this?
Join Master table and Compare table using a Query transformation and apply outerjoin on Master table. Identify the inserts (if columns in compare table is null then it is present only in Master table which means inserts). Redirect all the inserts to target table
For updates, compare columns in where condition, use Map operation (normal as updates) to target table.
We had a similar requirement, we used above approach to tag records as I, U or D. Based on the values we further processed these records in next dataflows.
One way would be to use (Auto-Correct load and use Input primary Key ) options of target table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.