<?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 JOIN in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/JOIN/m-p/2468707#M99490</link>
    <description>&lt;P&gt;I have the following Qlik script that I am using to try and match data from one table (Parent) to the other (Child). My problem is that I want to include only Order numbers which are currently on the Parent table and not the Child table. I also Want to ensure that I do not have duplicates on the Parent table as well.&lt;/P&gt;
&lt;P&gt;Here is the script:&lt;/P&gt;
&lt;P&gt;Parent:&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderNumber                          AS UninvoicedInvNumber,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RevenueAmount                        AS UninvoicedRevenueValue,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Invoiced,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DeliveryDateTimeFrom                  &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AS UninvoicedLoadDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date([DeliveryDateTimeFrom], 'MMM-YYYY')           as UninvoicedMonthYear,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LoadingDateTimeFrom&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FROM [Parent.qvd]&lt;BR /&gt;(qvd)&lt;BR /&gt;WHERE Invoiced = 'No' AND Date(DeliveryDateTimeFrom) &amp;gt;= '2023-07-01' and RevenueAmount &amp;gt; 0;&lt;/P&gt;
&lt;P&gt;Child:&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderNumber            AS UninvoicedInvNumber,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country              AS UninvoicedContract,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer            AS UninvoicedCustomerName&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FROM [Child.qvd]&lt;BR /&gt;(qvd);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// Join the Parent and Child tables based on OrderNumber&lt;BR /&gt;LEFT JOIN (Parent)&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UninvoicedInvNumber,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UninvoicedContract&lt;BR /&gt;RESIDENT Child;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// Drop the temporary Child table&lt;BR /&gt;DROP TABLE Child;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2024 12:38:58 GMT</pubDate>
    <dc:creator>botlhokots</dc:creator>
    <dc:date>2024-07-08T12:38:58Z</dc:date>
    <item>
      <title>JOIN</title>
      <link>https://community.qlik.com/t5/App-Development/JOIN/m-p/2468707#M99490</link>
      <description>&lt;P&gt;I have the following Qlik script that I am using to try and match data from one table (Parent) to the other (Child). My problem is that I want to include only Order numbers which are currently on the Parent table and not the Child table. I also Want to ensure that I do not have duplicates on the Parent table as well.&lt;/P&gt;
&lt;P&gt;Here is the script:&lt;/P&gt;
&lt;P&gt;Parent:&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderNumber                          AS UninvoicedInvNumber,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RevenueAmount                        AS UninvoicedRevenueValue,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Invoiced,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DeliveryDateTimeFrom                  &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AS UninvoicedLoadDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date([DeliveryDateTimeFrom], 'MMM-YYYY')           as UninvoicedMonthYear,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LoadingDateTimeFrom&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FROM [Parent.qvd]&lt;BR /&gt;(qvd)&lt;BR /&gt;WHERE Invoiced = 'No' AND Date(DeliveryDateTimeFrom) &amp;gt;= '2023-07-01' and RevenueAmount &amp;gt; 0;&lt;/P&gt;
&lt;P&gt;Child:&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderNumber            AS UninvoicedInvNumber,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country              AS UninvoicedContract,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer            AS UninvoicedCustomerName&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FROM [Child.qvd]&lt;BR /&gt;(qvd);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// Join the Parent and Child tables based on OrderNumber&lt;BR /&gt;LEFT JOIN (Parent)&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UninvoicedInvNumber,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UninvoicedContract&lt;BR /&gt;RESIDENT Child;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// Drop the temporary Child table&lt;BR /&gt;DROP TABLE Child;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 12:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/JOIN/m-p/2468707#M99490</guid>
      <dc:creator>botlhokots</dc:creator>
      <dc:date>2024-07-08T12:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN</title>
      <link>https://community.qlik.com/t5/App-Development/JOIN/m-p/2468715#M99492</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/305225"&gt;@botlhokots&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;// Load the Parent table with a WHERE NOT EXISTS clause to avoid duplicates&lt;BR /&gt;Parent:&lt;BR /&gt;LOAD&lt;BR /&gt;OrderNumber AS UninvoicedInvNumber,&lt;BR /&gt;&lt;BR /&gt;LoadingDateTimeFrom&lt;BR /&gt;FROM [Parent.qvd]&lt;BR /&gt;(qvd)&lt;BR /&gt;WHERE Invoiced = 'No'&amp;nbsp; AND Date(DeliveryDateTimeFrom) &amp;gt;= '2023-07-01' &lt;BR /&gt;AND RevenueAmount &amp;gt; 0&amp;nbsp; &amp;nbsp;AND&lt;STRONG&gt; NOT EXISTS(OrderNumber, OrderNumber)&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;// Load the Child table&lt;BR /&gt;Child:&lt;BR /&gt;LOAD&lt;BR /&gt;OrderNumber AS UninvoicedInvNumber,&lt;BR /&gt;Country AS UninvoicedContract,&lt;BR /&gt;Customer AS UninvoicedCustomerName&lt;BR /&gt;FROM [Child.qvd]&lt;BR /&gt;(qvd);&lt;/P&gt;
&lt;P&gt;// Create a temporary table to store OrderNumbers from the Child table&lt;BR /&gt;TempChild:&lt;BR /&gt;LOAD&lt;BR /&gt;UninvoicedInvNumber AS TempOrderNumber&lt;BR /&gt;RESIDENT Child;&lt;/P&gt;
&lt;P&gt;// Join the Parent and Child tables based on OrderNumber&lt;BR /&gt;// Exclude OrderNumbers that are in the TempChild table&lt;BR /&gt;LEFT JOIN (Parent)&lt;BR /&gt;LOAD&lt;BR /&gt;UninvoicedInvNumber,&lt;BR /&gt;UninvoicedContract&lt;BR /&gt;RESIDENT Child&lt;BR /&gt;WHERE NOT EXISTS(TempOrderNumber, UninvoicedInvNumber);&lt;/P&gt;
&lt;P&gt;// Drop the temporary tables&lt;BR /&gt;DROP TABLE Child;&lt;BR /&gt;DROP TABLE TempChild;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 13:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/JOIN/m-p/2468715#M99492</guid>
      <dc:creator>TauseefKhan</dc:creator>
      <dc:date>2024-07-08T13:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN</title>
      <link>https://community.qlik.com/t5/App-Development/JOIN/m-p/2470540#M99633</link>
      <description>&lt;P&gt;Hi TauseefKhan&lt;/P&gt;
&lt;P&gt;This is causing 0 loads on rows.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 18:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/JOIN/m-p/2470540#M99633</guid>
      <dc:creator>botlhokots</dc:creator>
      <dc:date>2024-07-14T18:28:25Z</dc:date>
    </item>
  </channel>
</rss>

