<?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: JOIN tables in script loading in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/JOIN-tables-in-script-loading/m-p/1574942#M740140</link>
    <description>&lt;P&gt;Great thx.&amp;nbsp; Your explanation is very clean.&amp;nbsp; So, I can simply join tables multiple times as your working example.&amp;nbsp; Thx.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2019 10:08:03 GMT</pubDate>
    <dc:creator>yipchunyu</dc:creator>
    <dc:date>2019-04-30T10:08:03Z</dc:date>
    <item>
      <title>JOIN tables in script loading</title>
      <link>https://community.qlik.com/t5/QlikView/JOIN-tables-in-script-loading/m-p/1574835#M740138</link>
      <description>&lt;P&gt;I just learning to use binary load.&amp;nbsp; I want to export tables from the loading scripts (instead of click export from objects).&lt;/P&gt;&lt;P&gt;However, it seems harder than my expectations.&lt;/P&gt;&lt;P&gt;For example, below&amp;nbsp;&lt;/P&gt;&lt;P&gt;OutputRaw:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD&lt;BR /&gt;Field A,&lt;BR /&gt;Field B,&lt;BR /&gt;Field C&lt;BR /&gt;&lt;SPAN&gt;Resident TableA;&lt;BR /&gt;&lt;/SPAN&gt;Join (OutputRaw)&lt;BR /&gt;Load&lt;BR /&gt;Field B,&lt;BR /&gt;FieldDate&lt;BR /&gt;Resident TableB&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;OutputFinal:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD *&lt;BR /&gt;Resident OutputRaw;&lt;BR /&gt;Join (OutputFinal)&lt;BR /&gt;FieldDate,&lt;BR /&gt;FieldYear&lt;BR /&gt;Resident Calendar&lt;BR /&gt;Where FieldYear ='2020';&lt;BR /&gt;&lt;BR /&gt;STORE OutputFinal into [C:\New.csv](txt);&lt;BR /&gt;DROP Table OutputRaw;&lt;BR /&gt;Drop Table OutputFinal;&lt;/P&gt;&lt;P&gt;Actually, it's very simple if using SQL.&amp;nbsp; I just want to join the table B and Table C and then use table C's Field Year to filter up the required data.&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Table A&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Table B&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Table C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Field A&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Field B&lt;/TD&gt;&lt;TD&gt;-&amp;gt;&lt;/TD&gt;&lt;TD&gt;Field B&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Field C&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Field Date&lt;/TD&gt;&lt;TD&gt;-&amp;gt;&lt;/TD&gt;&lt;TD&gt;Field Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Field Year&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Any idea to make it much simple?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/JOIN-tables-in-script-loading/m-p/1574835#M740138</guid>
      <dc:creator>yipchunyu</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN tables in script loading</title>
      <link>https://community.qlik.com/t5/QlikView/JOIN-tables-in-script-loading/m-p/1574887#M740139</link>
      <description>&lt;P&gt;There are four ways of doing join in QlikView&lt;/P&gt;&lt;P&gt;JOIN LOAD //Full outer join&lt;/P&gt;&lt;P&gt;LEFT JOIN //Keep all values in orignal table&amp;nbsp;&lt;/P&gt;&lt;P&gt;RIGHT JOIN //Keep all values in the join table&lt;/P&gt;&lt;P&gt;INNER JOIN //Keep only where there is a match in both tables&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try my script below and laborate with the different join methods to get your desired result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;TableA:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD * Inline [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Field A,Field B,Field C&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;A, BB, CCC&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;AA, BBB,C&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;AAA,B, CC&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;TableB:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD * Inline [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Field B, FieldDate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;B, 2020-04-30 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;BB, 2020-01-31&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;BBB, 2019-12-31&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;BBBB, 2020-03-31&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;TableC:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;dayname(FieldDate) as FieldDate,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;year(FieldDate) as FieldYear &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Inline [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FieldDate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2020-05-31 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2020-04-30 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2020-03-31 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2020-02-29 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2020-01-31 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2019-12-31&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Output:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;NoConcatenate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Field A],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Field B],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Field C]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Resident TableA;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;inner Join (Output)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Load&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Field B],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FieldDate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Resident TableB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;inner JOIN (Output)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FieldDate,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FieldYear&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Resident TableC&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Where FieldYear ='2020';&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;STORE Output into [C:\New.csv](txt);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;DROP TABLE&amp;nbsp;Output;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 09:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/JOIN-tables-in-script-loading/m-p/1574887#M740139</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-04-30T09:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN tables in script loading</title>
      <link>https://community.qlik.com/t5/QlikView/JOIN-tables-in-script-loading/m-p/1574942#M740140</link>
      <description>&lt;P&gt;Great thx.&amp;nbsp; Your explanation is very clean.&amp;nbsp; So, I can simply join tables multiple times as your working example.&amp;nbsp; Thx.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 10:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/JOIN-tables-in-script-loading/m-p/1574942#M740140</guid>
      <dc:creator>yipchunyu</dc:creator>
      <dc:date>2019-04-30T10:08:03Z</dc:date>
    </item>
  </channel>
</rss>

