<?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 How to load related data from another source in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-load-related-data-from-another-source/m-p/157797#M716729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Aug 2009 03:18:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-08-15T03:18:49Z</dc:date>
    <item>
      <title>How to load related data from another source</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-related-data-from-another-source/m-p/157791#M716723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt; &lt;w:WordDocument&gt;  &lt;w:View&gt;Normal&lt;/w:View&gt;  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;  &lt;w:PunctuationKerning&gt;&lt;/w:PunctuationKerning&gt;  &lt;w:ValidateAgainstSchemas&gt;&lt;/w:ValidateAgainstSchemas&gt;  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;  &lt;w:Compatibility&gt;   &lt;w:BreakWrappedTables&gt;&lt;/w:BreakWrappedTables&gt;   &lt;w:SnapToGridInCell&gt;&lt;/w:SnapToGridInCell&gt;   &lt;w:WrapTextWithPunct&gt;&lt;/w:WrapTextWithPunct&gt;   &lt;w:UseAsianBreakRules&gt;&lt;/w:UseAsianBreakRules&gt;   &lt;w:DontGrowAutofit&gt;&lt;/w:DontGrowAutofit&gt;  &lt;/w:Compatibility&gt;  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt; &lt;/w:WordDocument&gt;&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt; &lt;w:LatentStyles DefLockedState="false" LatentStyleCount="156"&gt; &lt;/w:LatentStyles&gt;&lt;/xml&gt;&lt;![endif]--&gt; &lt;!--[if gte mso 10]&gt;&lt;style&gt; /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}&lt;/style&gt;&lt;![endif]--&gt;Hello all&lt;BR /&gt;&lt;BR /&gt;I would like to know how to load data from a second ODBC source where the first load has&lt;BR /&gt;extracted the ID numbers of records that I want in the second load script.&lt;BR /&gt;&lt;BR /&gt;example&lt;BR /&gt;TAB_1:&lt;BR /&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;"Field_1" AS ID,&lt;BR /&gt;"Field_2" AS ID_REF,&lt;BR /&gt;"Field_1"&amp;amp;"Field_2" as Unique_ID,&lt;BR /&gt;"Field_3" as Task_Date&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;SET NULLDISPLAY='#Null';&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM ODBC."TABLE_NAME_A"&lt;BR /&gt;WHERE ("Field 3" &amp;gt;= '01-DEC-2008')&lt;BR /&gt;;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Then subsequently on TAB_2 I want the script to load fields where Unique_ID is equal to &lt;BR /&gt;the Unique_ID's loaded in the first part of the script because Field_3 doesn't exist in &lt;BR /&gt;the 2nd ODBC source and I don't want to load everything in from that table. &lt;BR /&gt;A bit like a join in Access where the record are equal. &lt;BR /&gt;BTW, I want the nulls to be like that so I can find data inconsistencies. &lt;BR /&gt;&lt;BR /&gt;TAB_2:&lt;BR /&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;"Field_1" AS ID,&lt;BR /&gt;"Field_2" AS ID_REF,&lt;BR /&gt;"Field_1"&amp;amp;"Field_2" as Unique_ID,&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;SET NULLDISPLAY='#Null';&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM ODBC."TABLE_NAME_B"&lt;BR /&gt;WHERE (TAB_2 "Field_1"&amp;amp;"Field_2" = TAB_1 "Field_1"&amp;amp;"Field_2")&lt;BR /&gt;;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you for any guidance and code adjustments you can give. &lt;BR /&gt;Many thanks&lt;BR /&gt;Greenee&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 02:33:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-related-data-from-another-source/m-p/157791#M716723</guid>
      <dc:creator />
      <dc:date>2009-08-14T02:33:01Z</dc:date>
    </item>
    <item>
      <title>How to load related data from another source</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-related-data-from-another-source/m-p/157792#M716724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this, but untested:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;TAB_2:&lt;BR /&gt;LOAD&lt;BR /&gt;"Field_1" AS ID,&lt;BR /&gt;"Field_2" AS ID_REF,&lt;BR /&gt;"Field_1"&amp;amp;"Field_2" as Unique_ID&lt;BR /&gt;WHERE EXISTS(Unique_ID,"Field_1"&amp;amp;"Field_2")&lt;BR /&gt;;&lt;BR /&gt;SET NULLDISPLAY='#Null';&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM ODBC."TABLE_NAME_B"&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Or just join the tables together in SQL, again untested and almost certainly with syntax errors, and doing an inner join which may not be what you wanted:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;TAB_2:&lt;BR /&gt;LOAD&lt;BR /&gt; ID&lt;BR /&gt;,ID_REF&lt;BR /&gt;,date(date#(Task_Date,'DD-MMM-YYYY')) as Task_Date&lt;BR /&gt;,blah_blah_blah&lt;BR /&gt;SQL&lt;BR /&gt;SELECT A.Field_1 as ID&lt;BR /&gt; , A.Field_2 as ID_REF&lt;BR /&gt; , A.Field_3 as Task_Date&lt;BR /&gt; , B.blah_blah_blah as blah_blah_blah&lt;BR /&gt; FROM ODBC.TABLE_NAME_A A&lt;BR /&gt; , ODBC.TABLE_NAME_B B&lt;BR /&gt; WHERE A.Field_3 &amp;gt;= '01-DEC-2008'&lt;BR /&gt; AND B.Field_1 = A.Field_1&lt;BR /&gt; AND B.Field_2 = A.Field_2&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 03:34:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-related-data-from-another-source/m-p/157792#M716724</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-08-14T03:34:10Z</dc:date>
    </item>
    <item>
      <title>How to load related data from another source</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-related-data-from-another-source/m-p/157793#M716725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dohh, that's what I do at the moment in SQL, I didn't realise I could do the same in QV, will test later.&lt;BR /&gt;Many thanks John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 12:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-related-data-from-another-source/m-p/157793#M716725</guid>
      <dc:creator />
      <dc:date>2009-08-14T12:08:21Z</dc:date>
    </item>
    <item>
      <title>How to load related data from another source</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-related-data-from-another-source/m-p/157794#M716726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Again&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;the first sugestion not at all, the second doesn't seem to work either.&lt;BR /&gt;The second load sequence doesn't reference the first set of data that has been collected. When I do a limited load of 10 lines, the second script gets a different 10 lines/ID's that probably do exist in the original tables, but that isn't what I want.&lt;/P&gt;&lt;P&gt;Any other ideas please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 21:12:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-related-data-from-another-source/m-p/157794#M716726</guid>
      <dc:creator />
      <dc:date>2009-08-14T21:12:11Z</dc:date>
    </item>
    <item>
      <title>How to load related data from another source</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-related-data-from-another-source/m-p/157795#M716727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached the file so you can see in detail what I am trying to do.&lt;BR /&gt;Many thanks.&lt;BR /&gt;Greenee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 21:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-related-data-from-another-source/m-p/157795#M716727</guid>
      <dc:creator />
      <dc:date>2009-08-14T21:25:04Z</dc:date>
    </item>
    <item>
      <title>How to load related data from another source</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-related-data-from-another-source/m-p/157796#M716728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure how much more I can help. Your two choices, as I see them, are some sort of where exists(...) or doing the desired join in SQL. If the syntax I gave you is incorrect (likely), or is being translated to the real example incorrectly, or if a limited load causes its own problems, I can't test it, so can't really fix it. I could put together an example with inline loads, but the syntax on those differs some from the syntax on SQL, and I can't mimic the second method at all, so it probably wouldn't be particularly helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2009 02:01:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-related-data-from-another-source/m-p/157796#M716728</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-08-15T02:01:04Z</dc:date>
    </item>
    <item>
      <title>How to load related data from another source</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-related-data-from-another-source/m-p/157797#M716729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2009 03:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-related-data-from-another-source/m-p/157797#M716729</guid>
      <dc:creator />
      <dc:date>2009-08-15T03:18:49Z</dc:date>
    </item>
  </channel>
</rss>

