Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
So, if I understand well, you would like to use a standalone component with a free field for typing your query such as
INSERT MyTable (MyColumn1, MyColumn2, MyColumn3, MyColumn4) (SELECT * FROM MyTable1, MyTable2)
Is it right ?
With Talend 2.0.0 you can execute this query in tOracleRow but you must connect a fake start component before to send one row, then the query will be executed.
With Talend 2.0.1 (not released yet) you will be able to use the tOracleRow alone.
The example on picture should fulfil your problem.
What do you think ?
I have a doubt : do you really want a cartesian product between your 2 inputs ?
In a cartesian product, if your first input has X rows and your second input has Y rows, the output resulting from the cartesian product will have X*Y rows.
OK, the best way to do it is to load your 2 inputs in 2 Oracle tables and then use ELT components the way amaumont explained in his last post.
Ok, I see your problem.
The solution I propose is not the better solution because a bug prevents to connect correctly a third RunBefore from tOracleInput to tELTOracleMap. Even it is possible, it implies a compilation error. I created a bug report on this subject 1077.
So an alternative solution should be to use a tRunJob to start ELT processing like in the image.