Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Kettle 3.2: Updating specific records in the result set (Execute SQL Script?)

$
0
0
Hi Everyone,

Here's what I'm trying to do: I'm querying from a source database and got my result set, below is an example:

Field A Field B
1 A
2 B
3 C

I want to update the 'A' to 'Andy', that's it, the rest stays the same. But I only have read/write access to the source database as it contains sensitive information. So which step should I use in Kettle 3.2 to update specific records in my result set?

Notes:
I'm not updating fields/columns, I want to update specific records, so that eliminates the 'Update' and 'Insert/Update' steps. Also, I DO NOT WANT to actually update the source database, so would the 'Execute SQL Script' step work? Would it update the records that I want from the previous 'Table Input' step, but everything in the source database remains untouched? Any other steps should I consider?

I hope I was clear, any help would be greatly appreciated. Thanks very much.

David

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>