<?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: Create Key with inconsistent Field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-Key-with-inconsistent-Field/m-p/496432#M694266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Leave out the where clauses. Qlikview joins tables on matching field names. You cannot specify the field names for the join like in SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #0000ff;"&gt;ID_ALL:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD distinct Table1.ID as ID resident Table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #0000ff;"&gt;LEFT JOIN (ID_ALL) LOAD Table2.ID as ID resident Table2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #0000ff;"&gt;LEFT JOIN (ID_ALL) LOAD Table3.ID as ID resident Table3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, the above statement doesn't actually do anything since you don't load any other fields from Table2 and Table3, so nothing gets joined with Table1. You probably want something like &lt;SPAN style="color: #0000ff; font-family: Arial; background-color: #ffffff;"&gt;LEFT JOIN (ID_ALL) LOAD *, Table2.ID as ID resident Table2;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Jun 2013 13:17:41 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-06-21T13:17:41Z</dc:date>
    <item>
      <title>Create Key with inconsistent Field</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Key-with-inconsistent-Field/m-p/496431#M694265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Everybody:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to ,better i have to create a key with an inconsistent field. Normaly this field is an ID, but our Database isn't complete.&lt;/P&gt;&lt;P&gt;Means,i have 3 Tables involving this field, let's call it ID. The first Table contains every value of ID.&lt;/P&gt;&lt;P&gt;The second only a part and the third includes the rest. So u can say :&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;count(distinct Table2.ID) + count(distinct Table3.ID) = count(distinct Table1.ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to connect them, so that when i choose a field from Table1, the ID in Table2 or Table3 is choosen too.&lt;/P&gt;&lt;P&gt;Or backwards, when i choose an ID from Table2, the ID in Table1 should be coosen too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls dont ask me why^^&lt;/P&gt;&lt;P&gt;I'm working on a demonstration Project and thats why i get an example Database;(&lt;/P&gt;&lt;P&gt;So i have to deal with that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can i do? When i simply connect them by setting this column name in every Table to ID at import, QV makes Table2 and Table3 loosely coupled.&lt;/P&gt;&lt;P&gt;I tried to create an connection Table, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="207" style="width: 210px; border: 1px solid #000000; height: 209px;" width="208"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: rgb(102, 144, 188); text-align: center;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Table1.ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: rgb(102, 144, 188); text-align: center;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Table2.ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: rgb(102, 144, 188); text-align: center;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Table3.ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="text-align: center;"&gt;1&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;1&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="text-align: center;"&gt;2&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;-&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="text-align: center;"&gt;3&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;3&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="text-align: center;"&gt;4&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;4&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="text-align: center;"&gt;5&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;5&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="text-align: center;"&gt;6&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;-&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="text-align: center;"&gt;7&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;-&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with following Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;ID_ALL:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD distinct Table1.ID as ID resident Table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LEFT JOIN (ID_ALL) LOAD Table2.ID resident Table2 where Table2.ID=ID;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LEFT JOIN (ID_ALL) LOAD Table3.ID resident Table3 where Table3.ID=ID;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This cant be executed because the Field ID cannot be found...&lt;/P&gt;&lt;P&gt;Do i need more Fields for join? Is it senseless to join like this? Its not my first join...but i dont get it work...&lt;/P&gt;&lt;P&gt;I also read about ApplyMap, could this function help?&lt;/P&gt;&lt;P&gt;Or also to less fields?&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thx for reading;)&lt;/P&gt;&lt;P&gt;Sarah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 12:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Key-with-inconsistent-Field/m-p/496431#M694265</guid>
      <dc:creator />
      <dc:date>2013-06-21T12:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create Key with inconsistent Field</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Key-with-inconsistent-Field/m-p/496432#M694266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Leave out the where clauses. Qlikview joins tables on matching field names. You cannot specify the field names for the join like in SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #0000ff;"&gt;ID_ALL:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD distinct Table1.ID as ID resident Table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #0000ff;"&gt;LEFT JOIN (ID_ALL) LOAD Table2.ID as ID resident Table2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #0000ff;"&gt;LEFT JOIN (ID_ALL) LOAD Table3.ID as ID resident Table3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, the above statement doesn't actually do anything since you don't load any other fields from Table2 and Table3, so nothing gets joined with Table1. You probably want something like &lt;SPAN style="color: #0000ff; font-family: Arial; background-color: #ffffff;"&gt;LEFT JOIN (ID_ALL) LOAD *, Table2.ID as ID resident Table2;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 13:17:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Key-with-inconsistent-Field/m-p/496432#M694266</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-21T13:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create Key with inconsistent Field</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Key-with-inconsistent-Field/m-p/496433#M694267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for all the posts:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is more interesting to me. Funny is that i always join with where condition^^&lt;/P&gt;&lt;P&gt;And it works...Does QV ignores the condition, when it would join with the same fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed my script to LEFT JOIN (ID_ALL) LOAD *, Table2.ID as ID resident Table2;&lt;/P&gt;&lt;P&gt;But i dont know if it works because im running out of virtual and/or physical Memory:(&lt;/P&gt;&lt;P&gt;One million Rows seem to be too much to join or is there a way to tell QV do it partly or sth?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other Solutions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 14:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Key-with-inconsistent-Field/m-p/496433#M694267</guid>
      <dc:creator />
      <dc:date>2013-06-21T14:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create Key with inconsistent Field</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Key-with-inconsistent-Field/m-p/496434#M694268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, i get it with ApplyMap. This can be executed without running out of virtual and/or physical memory(in this/my case).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the Script:&lt;/P&gt;&lt;P&gt;I simplify the names of the ID to ID1^^&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID1_Map1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mapping LOAD DISTINCT Table2.ID1,Table2.ID1 as MapID1 resident Table2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID1_Map2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mapping LOAD DISTINCT Table3.ID1,Table3.ID1 as MapID12 resident Table3;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID1_DISTINCT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DISTINCT ID1 resident Table1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID1_TMP:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,MapID1 as MapID2,ApplyMap('ID1_Map1',MapID1,null()) resident ID1_DISTINCT;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID1_ALL:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,ApplyMap('ID1_Map2',MapID2,null()) resident ID1_TMP;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2013 11:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Key-with-inconsistent-Field/m-p/496434#M694268</guid>
      <dc:creator />
      <dc:date>2013-06-24T11:53:37Z</dc:date>
    </item>
  </channel>
</rss>

