<?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 Handling NULLS while Joining 2 tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Handling-NULLS-while-Joining-2-tables/m-p/218232#M71397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on 2 tables wherein I have join on one column.What my understanding and I can see is QlikView by default does the full outer join on two tables.&lt;/P&gt;&lt;P&gt;Now I have some records present nin Table 1 and not in table 2 and vice versa.&lt;/P&gt;&lt;P&gt;When I am checking the condition I can see there is null value for one particular record in table 1 for a value present in table 2. But I am not able to read this null value or handle this null value.&lt;/P&gt;&lt;P&gt;I have tried using NullasValue/ISNULL/NULLINTERPRET nothing is working in the way I am looking for.&lt;/P&gt;&lt;P&gt;I am looking for data in both table based on key but when key is not available in one of the table I have to setup some flag or like that.&lt;/P&gt;&lt;P&gt;Could you please help me on this.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swapnil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Apr 2011 15:13:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-04-15T15:13:29Z</dc:date>
    <item>
      <title>Handling NULLS while Joining 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULLS-while-Joining-2-tables/m-p/218232#M71397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on 2 tables wherein I have join on one column.What my understanding and I can see is QlikView by default does the full outer join on two tables.&lt;/P&gt;&lt;P&gt;Now I have some records present nin Table 1 and not in table 2 and vice versa.&lt;/P&gt;&lt;P&gt;When I am checking the condition I can see there is null value for one particular record in table 1 for a value present in table 2. But I am not able to read this null value or handle this null value.&lt;/P&gt;&lt;P&gt;I have tried using NullasValue/ISNULL/NULLINTERPRET nothing is working in the way I am looking for.&lt;/P&gt;&lt;P&gt;I am looking for data in both table based on key but when key is not available in one of the table I have to setup some flag or like that.&lt;/P&gt;&lt;P&gt;Could you please help me on this.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swapnil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 15:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULLS-while-Joining-2-tables/m-p/218232#M71397</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-15T15:13:29Z</dc:date>
    </item>
    <item>
      <title>Handling NULLS while Joining 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULLS-while-Joining-2-tables/m-p/218233#M71398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Swapnil,&lt;/P&gt;&lt;P&gt;It may be as easy as doing this in the script in both tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;If(Len(KeyField) = 0, 'Missing', KeyField) AS KeyField&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;So whenever the KeyField is a null value (its length is zero) the word "Missing" is used (or any other useful value for you) and you can easily check when that "Missing" records are loaded.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 15:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULLS-while-Joining-2-tables/m-p/218233#M71398</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-04-15T15:21:46Z</dc:date>
    </item>
    <item>
      <title>Handling NULLS while Joining 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULLS-while-Joining-2-tables/m-p/218234#M71399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are trying to check for nulls within the JOIN LOAD statement, you won't find them - at that point, they might not exist yet (the value is missing, but it's not yet a null())&lt;/P&gt;&lt;P&gt;You can try reloading the same table using RESIDENT load, after it's already joined, and check for nulls then.&lt;/P&gt;&lt;P&gt;If you simply wanted to avoid mismatched records - maybe you can use LEFT or RIGHT or INNER join?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 15:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULLS-while-Joining-2-tables/m-p/218234#M71399</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2011-04-15T15:25:56Z</dc:date>
    </item>
    <item>
      <title>Handling NULLS while Joining 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULLS-while-Joining-2-tables/m-p/218235#M71400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;P&gt;This I have used to identify null values. But this function did not work when i tried retrieving the data and keep this function on joined table.&lt;/P&gt;&lt;P&gt;Also I am just thinking if I replace my say for e.g "Missing" when there is not value how the join will work. As I have join on the same column.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swapnil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 15:30:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULLS-while-Joining-2-tables/m-p/218235#M71400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-15T15:30:03Z</dc:date>
    </item>
  </channel>
</rss>

