Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Hajar1
Contributor
Contributor

Update query

Hello evryone, I have to correct a job in talend that do the update of a table, and it must be exactly like a similar job in DataStage, in the component that do the update in DataStage, I have the following query:

UPDATE DWADMIN.INV_INVOICE_LINES SET COMMERCIAL_RANGE=:4

WHERE ORIGINAL_INVOICE_ID=:1

    and ORIGINAL_INVOICE_LINE_ID=:2

    and INVOICE_HEADER_ID=:5

    and INVOICE_LINE_ID=:6

    and DWADMIN.INV_INVOICE_LINES.ORIGINAL_INVOICE_ID in 

           ( select DWADMIN.INV_INVOICE_HEADERS.ORIGINAL_INVOICE_ID

              from DWADMIN.INV_INVOICE_HEADERS

            where DWADMIN.INV_INVOICE_HEADERS.ORIGINAL_SET_OF_BOOK_ID =:3)

How can I do the same in Talend?

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

@Hajar EL HADRI​ try the tDBRow component which is used to execute a query or use the tDBInput+tDBOutput components.

 

Regards

Shong

View solution in original post

1 Reply
Anonymous
Not applicable

@Hajar EL HADRI​ try the tDBRow component which is used to execute a query or use the tDBInput+tDBOutput components.

 

Regards

Shong