<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Handle null value in key columns in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Handle-null-value-in-key-columns/m-p/2226866#M18646</link>
    <description>Thanks JoRoesecke. I am pretty sure your approach would work. Unfortunately I could not change the table in DB. So wondering if there is anything in Talend could handle this.&amp;nbsp;</description>
    <pubDate>Mon, 14 Nov 2016 20:15:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-11-14T20:15:19Z</dc:date>
    <item>
      <title>Handle null value in key columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handle-null-value-in-key-columns/m-p/2226861#M18641</link>
      <description>On tOracleOutput for update or delete action, we need to specify the key columns. In my case, some key columns could be null. I expected that for one column, null == null. Or we could specify NVL function for the columns as in sql.&amp;nbsp;
&lt;BR /&gt;Is there such option in tOracleOutput on specifying key columns? Is there an easy way to match value as null == null for key columns?</description>
      <pubDate>Wed, 09 Nov 2016 22:22:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handle-null-value-in-key-columns/m-p/2226861#M18641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-09T22:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Handle null value in key columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handle-null-value-in-key-columns/m-p/2226862#M18642</link>
      <description>Hi&amp;nbsp; 
&lt;BR /&gt;For update, it is other columns are updated, not the key column. Can you please explain your requirement with some example data? 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 10 Nov 2016 02:41:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handle-null-value-in-key-columns/m-p/2226862#M18642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-10T02:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Handle null value in key columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handle-null-value-in-key-columns/m-p/2226863#M18643</link>
      <description>For example, I have a table with 3 columns, (key1, key2, value). column key1 is not nullable, while key2 is nullable. On update , the job will check on the key columns to see if they are the same. I hope, (source.key1 =1, source.key2=null), will match with (target.key1=1, target.key2=null), so the target.value is updated. But from my testing, target row is not updated.&amp;nbsp;
&lt;BR /&gt;Is there anyway to make it happen?</description>
      <pubDate>Thu, 10 Nov 2016 13:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handle-null-value-in-key-columns/m-p/2226863#M18643</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-10T13:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Handle null value in key columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handle-null-value-in-key-columns/m-p/2226864#M18644</link>
      <description>Anyone has any suggestion on this?</description>
      <pubDate>Mon, 14 Nov 2016 13:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handle-null-value-in-key-columns/m-p/2226864#M18644</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-14T13:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Handle null value in key columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handle-null-value-in-key-columns/m-p/2226865#M18645</link>
      <description>If I understand correctly, you plan to have a composite key consisting of two columns, one of which can be NULL. Correct? As Oracle does not allow primary key columns to be NULL I assume you either have no primary key in your target table or it is using other columns. What you can do is to create an additional column in your target table holding the combination of key1 and key2 concatenated like this: target.key1 + (target.key2 == null ? "" : target.key2). Mark this one as your update key and it should work. You should also create a unique index on this column. Depending on the amount of records, this may speed up the update. Let the community know how this works out for you.</description>
      <pubDate>Mon, 14 Nov 2016 19:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handle-null-value-in-key-columns/m-p/2226865#M18645</guid>
      <dc:creator>JR1</dc:creator>
      <dc:date>2016-11-14T19:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Handle null value in key columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handle-null-value-in-key-columns/m-p/2226866#M18646</link>
      <description>Thanks JoRoesecke. I am pretty sure your approach would work. Unfortunately I could not change the table in DB. So wondering if there is anything in Talend could handle this.&amp;nbsp;</description>
      <pubDate>Mon, 14 Nov 2016 20:15:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handle-null-value-in-key-columns/m-p/2226866#M18646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-14T20:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Handle null value in key columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handle-null-value-in-key-columns/m-p/2226867#M18647</link>
      <description>I'm pretty sure null == null doesn't evaluate to True in most databases. &amp;nbsp;If you can't update your table structure, you may want to break up your process into two updates:&amp;nbsp; 
&lt;BR /&gt;where key2 is not null, compare both key columns to the table values 
&lt;BR /&gt;where key2 is null, compare only key1 to the table value, with a static constraint on the table of "key2 is null". 
&lt;BR /&gt;A tMap component lets you create multiple outputs based on conditions. &amp;nbsp; Click on the green plus icon next to the wrench above the output to reveal the expression filter box.</description>
      <pubDate>Mon, 14 Nov 2016 21:37:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handle-null-value-in-key-columns/m-p/2226867#M18647</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2016-11-14T21:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Handle null value in key columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handle-null-value-in-key-columns/m-p/2226868#M18648</link>
      <description>Thanks cterenzi! This should work.&amp;nbsp;</description>
      <pubDate>Tue, 15 Nov 2016 14:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handle-null-value-in-key-columns/m-p/2226868#M18648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-15T14:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Handle null value in key columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handle-null-value-in-key-columns/m-p/2226869#M18649</link>
      <description>Wait, this still does not solve the issue in tOracleOutput because I could not specify key2 is null.&amp;nbsp;</description>
      <pubDate>Tue, 15 Nov 2016 14:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handle-null-value-in-key-columns/m-p/2226869#M18649</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-15T14:55:13Z</dc:date>
    </item>
  </channel>
</rss>

