<?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: work with 2 sources in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686476#M672262</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming that KeyNr can be used to check if data exists, you can use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempData:&lt;/P&gt;&lt;P&gt;NrKey,&lt;/P&gt;&lt;P&gt;...;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM YDB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S1:&lt;/P&gt;&lt;P&gt;KeyNr,&lt;/P&gt;&lt;P&gt;...;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM XDB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate (TempData)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;KeyNr as NrKey,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Resident S1 where not exists('NrKey', KeyNr);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table S1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: note that I change the order tables were read from SQL, so we load all records from S2 and only those not previously loaded from S1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2014 11:07:01 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2014-09-12T11:07:01Z</dc:date>
    <item>
      <title>work with 2 sources</title>
      <link>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686472#M672255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, &lt;/P&gt;&lt;P&gt;I want to work with 2 Sources in Qlikview, well thats the strenght of QV I think, but I dont know, how to manage that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 sources like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S1:&lt;/P&gt;&lt;P&gt;KeyNr,&lt;/P&gt;&lt;P&gt;LName, &lt;/P&gt;&lt;P&gt;FName,&lt;/P&gt;&lt;P&gt;BDate,&lt;/P&gt;&lt;P&gt;Addressname,&lt;/P&gt;&lt;P&gt;AddressNr,&lt;/P&gt;&lt;P&gt;...;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM XDB;&lt;/P&gt;&lt;P&gt;S2:&lt;/P&gt;&lt;P&gt;NrKey,&lt;/P&gt;&lt;P&gt;Name,&lt;/P&gt;&lt;P&gt;FirstName,&lt;/P&gt;&lt;P&gt;BDay,&lt;/P&gt;&lt;P&gt;Adresse // (-&amp;gt; = Adressname+Nr)&lt;/P&gt;&lt;P&gt;...;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM YDB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have following data:&lt;/P&gt;&lt;P&gt;in S1(XDB) are old data from 2010- June2014&lt;/P&gt;&lt;P&gt;in S2(YDB) are newer data with &lt;STRONG&gt;active people&lt;/STRONG&gt; from 2010 - today..&lt;/P&gt;&lt;P&gt;____&lt;/P&gt;&lt;P&gt;I want to split this in 2 types/table: Person and Adress&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I realize that in Script ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 09:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686472#M672255</guid>
      <dc:creator />
      <dc:date>2014-09-12T09:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: work with 2 sources</title>
      <link>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686473#M672256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi.. it would be helpful if you let us know, u want to concat and show all details or is it on demand data share of old and new data.. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 09:54:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686473#M672256</guid>
      <dc:creator>vinay_hg</dc:creator>
      <dc:date>2014-09-12T09:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: work with 2 sources</title>
      <link>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686474#M672258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can concatenate both tables withalias so the fields will be the same:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempData:&lt;/P&gt;&lt;P&gt;KeyNr,&lt;/P&gt;&lt;P&gt;Addressname &amp;amp; AddressNr as Adresse&lt;/P&gt;&lt;P&gt;...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate (TempData)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;NrKey as KeyNr,&lt;/P&gt;&lt;P&gt;...;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM YDB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can divide data in 2 tables leaving Adresse or the field you want as link in both tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Persons:&lt;/P&gt;&lt;P&gt;LOAD Adresse,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LName...&lt;/P&gt;&lt;P&gt;Resident TempData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Address:&lt;/P&gt;&lt;P&gt;LOAD Adresse,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Addressname...&lt;/P&gt;&lt;P&gt;Resident TempData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table TempData;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 09:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686474#M672258</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-09-12T09:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: work with 2 sources</title>
      <link>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686475#M672260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right,&lt;/P&gt;&lt;P&gt;But is it possible, to say that I, just want the data of S2(YDB) if it exist, if not- so from S1 ? Like Address,..&lt;/P&gt;&lt;P&gt;Now it shows me 2 same lines (1 from S1 with A&amp;amp; B as Adress, 2. from S2)&lt;/P&gt;&lt;P&gt; &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 10:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686475#M672260</guid>
      <dc:creator />
      <dc:date>2014-09-12T10:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: work with 2 sources</title>
      <link>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686476#M672262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming that KeyNr can be used to check if data exists, you can use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempData:&lt;/P&gt;&lt;P&gt;NrKey,&lt;/P&gt;&lt;P&gt;...;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM YDB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S1:&lt;/P&gt;&lt;P&gt;KeyNr,&lt;/P&gt;&lt;P&gt;...;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM XDB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate (TempData)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;KeyNr as NrKey,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Resident S1 where not exists('NrKey', KeyNr);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table S1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: note that I change the order tables were read from SQL, so we load all records from S2 and only those not previously loaded from S1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 11:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686476#M672262</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-09-12T11:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: work with 2 sources</title>
      <link>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686477#M672264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, after SQL.. FROM DB I cant use where not exists..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 11:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686477#M672264</guid>
      <dc:creator />
      <dc:date>2014-09-12T11:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: work with 2 sources</title>
      <link>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686478#M672265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check my previous post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempData:&lt;/P&gt;&lt;P&gt;NrKey,&lt;/P&gt;&lt;P&gt;...;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM YDB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S1:&lt;/P&gt;&lt;P&gt;KeyNr,&lt;/P&gt;&lt;P&gt;...;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM XDB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate (TempData)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;KeyNr as NrKey,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Resident S1 where not exists('NrKey', KeyNr);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table S1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 11:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686478#M672265</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-09-12T11:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: work with 2 sources</title>
      <link>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686479#M672266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dont you mean drop table Temp?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 11:56:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686479#M672266</guid>
      <dc:creator />
      <dc:date>2014-09-12T11:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: work with 2 sources</title>
      <link>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686480#M672267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That code was to be inserted before loading Person and Address tables, after loading these tables you can drop Temp table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S1 Table has to be dropped too, this can be done after concatenate S2 Table on Temp table or when Temp table is dropped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Full code will be:&lt;/P&gt;&lt;P&gt;TempData:&lt;/P&gt;&lt;P&gt;NrKey,&lt;/P&gt;&lt;P&gt;...;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM YDB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S1:&lt;/P&gt;&lt;P&gt;KeyNr,&lt;/P&gt;&lt;P&gt;...;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM XDB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate (TempData)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;KeyNr as NrKey,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Resident S1 where not exists('NrKey', KeyNr);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table S1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Persons:&lt;/P&gt;&lt;P&gt;LOAD Adresse,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LName...&lt;/P&gt;&lt;P&gt;Resident TempData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Address:&lt;/P&gt;&lt;P&gt;LOAD Adresse,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Addressname...&lt;/P&gt;&lt;P&gt;Resident TempData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table TempData;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 12:03:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686480#M672267</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-09-12T12:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: work with 2 sources</title>
      <link>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686481#M672268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So all in all it looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp_S1: //Add_data&lt;/P&gt;&lt;P&gt;Load NrKey...&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM YDB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S2: //Basic data&lt;/P&gt;&lt;P&gt;Load KeyNr...&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM XDB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate (Temp_S1)&lt;/P&gt;&lt;P&gt;Load NrKey as Keynr...&lt;/P&gt;&lt;P&gt;Resident Temp_S1 Where not exist('KeyNr', NrKey);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Followed by&lt;/P&gt;&lt;P&gt;Personal:&lt;/P&gt;&lt;P&gt;Load Keynr, Name,...&lt;/P&gt;&lt;P&gt;Resident S2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Address:&lt;/P&gt;&lt;P&gt;Load Keynr, ...&lt;/P&gt;&lt;P&gt;Resident S2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after all -&amp;gt; drop table Temp_S1 &amp;amp; S2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I right? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 12:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686481#M672268</guid>
      <dc:creator />
      <dc:date>2014-09-12T12:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: work with 2 sources</title>
      <link>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686482#M672269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Thank you very much !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 12:14:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686482#M672269</guid>
      <dc:creator />
      <dc:date>2014-09-12T12:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: work with 2 sources</title>
      <link>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686483#M672270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Almost, Personal and Address tables should read from Temp_S1 instead of S2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp_S1: //Add_data&lt;/P&gt;&lt;P&gt;Load NrKey...&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM YDB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S2: //Basic data&lt;/P&gt;&lt;P&gt;Load KeyNr...&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM XDB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate (Temp_S1)&lt;/P&gt;&lt;P&gt;Load NrKey as Keynr...&lt;/P&gt;&lt;P&gt;Resident S2 Where not exist('KeyNr', NrKey);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Followed by&lt;/P&gt;&lt;P&gt;Personal:&lt;/P&gt;&lt;P&gt;Load Keynr, Name,...&lt;/P&gt;&lt;P&gt;Resident Temp_S1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Address:&lt;/P&gt;&lt;P&gt;Load Keynr, ...&lt;/P&gt;&lt;P&gt;Resident Temp_S1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop tables Temp_S1, S2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 12:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/work-with-2-sources/m-p/686483#M672270</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-09-12T12:17:21Z</dc:date>
    </item>
  </channel>
</rss>

