<?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 Reading 2 tabels with different keylen in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reading-2-tabels-with-different-keylen/m-p/1659412#M729939</link>
    <description>&lt;P&gt;having 1 tabel with keylen 16 charters long&amp;nbsp; , right ajusted like&amp;nbsp; '&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 123456'&amp;nbsp; named eg.&amp;nbsp; Productienummer;&lt;/P&gt;&lt;P&gt;then other tabel with keylen 8&amp;nbsp; &amp;nbsp;righ ajusted like '&amp;nbsp; 123456'&amp;nbsp; &amp;nbsp;named eg.&amp;nbsp; AflbonNumber,&lt;/P&gt;&lt;P&gt;Loading goes like&lt;/P&gt;&lt;P&gt;load&lt;BR /&gt;TracingKode as Productienummer;&lt;BR /&gt;SQL select * from TRACCODE;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;load&lt;BR /&gt;AflbonNumber;&lt;BR /&gt;SQL select * from SalesTabel;&lt;/P&gt;&lt;P&gt;In a&amp;nbsp;&lt;SPAN&gt;graph object i need to show all records from tabel SalesTabel&amp;nbsp; using&amp;nbsp; the key&amp;nbsp;Productienummer&amp;nbsp; from tabel&amp;nbsp;TRACCODE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>JACKNIEKERK</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Reading 2 tabels with different keylen</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-2-tabels-with-different-keylen/m-p/1659412#M729939</link>
      <description>&lt;P&gt;having 1 tabel with keylen 16 charters long&amp;nbsp; , right ajusted like&amp;nbsp; '&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 123456'&amp;nbsp; named eg.&amp;nbsp; Productienummer;&lt;/P&gt;&lt;P&gt;then other tabel with keylen 8&amp;nbsp; &amp;nbsp;righ ajusted like '&amp;nbsp; 123456'&amp;nbsp; &amp;nbsp;named eg.&amp;nbsp; AflbonNumber,&lt;/P&gt;&lt;P&gt;Loading goes like&lt;/P&gt;&lt;P&gt;load&lt;BR /&gt;TracingKode as Productienummer;&lt;BR /&gt;SQL select * from TRACCODE;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;load&lt;BR /&gt;AflbonNumber;&lt;BR /&gt;SQL select * from SalesTabel;&lt;/P&gt;&lt;P&gt;In a&amp;nbsp;&lt;SPAN&gt;graph object i need to show all records from tabel SalesTabel&amp;nbsp; using&amp;nbsp; the key&amp;nbsp;Productienummer&amp;nbsp; from tabel&amp;nbsp;TRACCODE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-2-tabels-with-different-keylen/m-p/1659412#M729939</guid>
      <dc:creator>JACKNIEKERK</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reading 2 tabels with different keylen</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-2-tabels-with-different-keylen/m-p/1659515#M729940</link>
      <description>&lt;P&gt;why not use the trim() function&lt;/P&gt;&lt;P&gt;Example Result&lt;/P&gt;&lt;TABLE cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN class="Code"&gt;Trim( ' abc' )&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;Returns 'abc'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN class="Code"&gt;Trim( 'abc ' )&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;Returns 'abc'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN class="Code"&gt;Trim( ' abc ' )&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;Returns 'abc'&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so the script becomes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;load
RowNo() as IDTACCODE,
trim(TracingKode) as Productienummer;
SQL select * from TRACCODE;


load
RowNo() as IDSalesTabel,
trim(AflbonNumber) as Productienummer;
SQL select * from SalesTabel;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rowno() to differentiate those from the first table from those from the second if necessary&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 19:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-2-tabels-with-different-keylen/m-p/1659515#M729940</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-19T19:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reading 2 tabels with different keylen</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-2-tabels-with-different-keylen/m-p/1659610#M729941</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TFilt:&lt;BR /&gt;LOAD Trim(TracingKode) as Productienummer;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SQL select TracingKode from TRACCODE;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sales:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;LOAD *&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Where Exists(Productienummer, Trim(AflbonNumber);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SQL select * from SalesTabel;&lt;BR /&gt;&lt;BR /&gt;DROP Table&amp;nbsp;&amp;nbsp;TFilt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;If the data set is large, you may want to perform a join in SQL to limit the date being transferred to Qlik.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 06:16:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-2-tabels-with-different-keylen/m-p/1659610#M729941</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-12-20T06:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reading 2 tabels with different keylen</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-2-tabels-with-different-keylen/m-p/1659642#M729942</link>
      <description>&lt;P&gt;that works&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 08:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-2-tabels-with-different-keylen/m-p/1659642#M729942</guid>
      <dc:creator>JACKNIEKERK</dc:creator>
      <dc:date>2019-12-20T08:00:48Z</dc:date>
    </item>
  </channel>
</rss>

