<?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: Multiple Similar Databases - Load/Join/Concatenate? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Multiple-Similar-Databases-Load-Join-Concatenate/m-p/1289468#M27171</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would concatenate them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally in load scripts I avoid joining tables if possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Feb 2017 12:02:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-02-16T12:02:18Z</dc:date>
    <item>
      <title>Multiple Similar Databases - Load/Join/Concatenate?</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-Similar-Databases-Load-Join-Concatenate/m-p/1289467#M27170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am loading data from 4 similar databases, each representing a different company. I have added a Company ID to an empty field in the LOAD script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem lies with joining tables in each database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The LOAD script runs as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONNECT Database 1&lt;/P&gt;&lt;P&gt;LOAD Table 1 Fields&lt;/P&gt;&lt;P&gt;SQL SELECT Table 1 Fields&lt;/P&gt;&lt;P&gt;JOIN LOAD Table 2 Fields&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SQL SELECT Table 2 Fields&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD Table 3 Fields&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SQL SELECT Table 3 Fields&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LEFT JOIN LOAD Table 4 Fields&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SQL SELECT Table 4 Fields&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;This works fine and the data is how I expected. So, I copied the LOAD script and added a similar one for the next database:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;CONNECT Database 2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD Table 1 Fields&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SQL SELECT Table 1 Fields&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;etc. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;This brings multiple synthetic keys and the data is messed up.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I've also tried connecting to Database 1, loading Table 1, then connecting to Database 2, concatenating Table 1 etc. but I end up with similar problems.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I guess what I need to do is concatenate the tables first and then make the joins later? Is this possible? Or I am barking up the wrong tree?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 11:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-Similar-Databases-Load-Join-Concatenate/m-p/1289467#M27170</guid>
      <dc:creator>seniorps</dc:creator>
      <dc:date>2017-02-16T11:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Similar Databases - Load/Join/Concatenate?</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-Similar-Databases-Load-Join-Concatenate/m-p/1289468#M27171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would concatenate them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally in load scripts I avoid joining tables if possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 12:02:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-Similar-Databases-Load-Join-Concatenate/m-p/1289468#M27171</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-16T12:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Similar Databases - Load/Join/Concatenate?</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-Similar-Databases-Load-Join-Concatenate/m-p/1289469#M27172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill. I relatively new to Qlik and I don't understand your answer. The joins are necessary for the integrity of the data. I am interested in knowing whether it is possible to concatenate the data first and then add the joins later in the process?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 15:34:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-Similar-Databases-Load-Join-Concatenate/m-p/1289469#M27172</guid>
      <dc:creator>seniorps</dc:creator>
      <dc:date>2017-02-16T15:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Similar Databases - Load/Join/Concatenate?</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-Similar-Databases-Load-Join-Concatenate/m-p/1289470#M27173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are your 4 loads from your 4 source databases loading the same fields ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 15:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-Similar-Databases-Load-Join-Concatenate/m-p/1289470#M27173</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-16T15:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Similar Databases - Load/Join/Concatenate?</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-Similar-Databases-Load-Join-Concatenate/m-p/1289471#M27174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 16:00:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-Similar-Databases-Load-Join-Concatenate/m-p/1289471#M27174</guid>
      <dc:creator>seniorps</dc:creator>
      <dc:date>2017-02-16T16:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Similar Databases - Load/Join/Concatenate?</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-Similar-Databases-Load-Join-Concatenate/m-p/1289472#M27175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then concatenating them all together would be the Qlik way to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I came from a relational database / online transactional processing background and initially found abandoning joins and embracing concatenations unnerving, but now I am convert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You say "&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;The joins are necessary for the integrity of the data&lt;/SPAN&gt;" could you clarify your concerns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a feeling these concerns may well be irrelevant when you are using the Qlik QIX Associative engine as opposed to a Relational engine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could just take a leap of faith, concatenate all 4 tables together and hopefully be pleasantly surprised when it all works perfectly.&amp;nbsp; You'll probably also find your load script runs faster and your dashboard responds quicker.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 16:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-Similar-Databases-Load-Join-Concatenate/m-p/1289472#M27175</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-16T16:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Similar Databases - Load/Join/Concatenate?</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-Similar-Databases-Load-Join-Concatenate/m-p/1289473#M27176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I remove the joins and just load the data I get several synthetic keys and loops. The data itself is therefore often repeated in the visualisations. The data in the 4 source tables (there are 4 per company) is joined within each company in order to stop this from happening. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I concatenate load the data I get no loops and synthetic keys, but none of the fields are linked in the way visualisations expect, so for example filters etc do not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 10:54:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-Similar-Databases-Load-Join-Concatenate/m-p/1289473#M27176</guid>
      <dc:creator>seniorps</dc:creator>
      <dc:date>2017-02-17T10:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Similar Databases - Load/Join/Concatenate?</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-Similar-Databases-Load-Join-Concatenate/m-p/1289474#M27177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hard to say without knowing your data &amp;amp; needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This blog may be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://qlikviewcookbook.com/2009/11/understanding-join-and-concatenate/" title="https://qlikviewcookbook.com/2009/11/understanding-join-and-concatenate/"&gt;https://qlikviewcookbook.com/2009/11/understanding-join-and-concatenate/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 11:35:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-Similar-Databases-Load-Join-Concatenate/m-p/1289474#M27177</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-17T11:35:15Z</dc:date>
    </item>
  </channel>
</rss>

