<?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: Merge / Join two resident tables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Merge-Join-two-resident-tables/m-p/1580416#M42379</link>
    <description>&lt;P&gt;For some reason the last part of the code did not work at my end (i.e. names: left join (sbi) etc.)&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a work around I simply used the statement left join (sbi), and used that very same name in another resident load. So after the left join the table is named sbi instead of names.&lt;/P&gt;&lt;P&gt;Thanks for your help anyway &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2019 12:46:28 GMT</pubDate>
    <dc:creator>klikgevoel</dc:creator>
    <dc:date>2019-05-15T12:46:28Z</dc:date>
    <item>
      <title>Merge / Join two resident tables</title>
      <link>https://community.qlik.com/t5/App-Development/Merge-Join-two-resident-tables/m-p/1579005#M42233</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Lets assume we have two arbitrary tables, each loaded independently. Both tables use the NoConcatenate statement and Resident load, because some data wrangling is happening. Yet, both tables do share one field name in common, which I want to use to concatenate / join one table to the other.&lt;/P&gt;&lt;P&gt;How can I merge the first table with the other using either a concatenate or join statement? I find it quite confusing figuring it out compared to other languages as Python, R etc. where I can easily specify the dataframes and the key to use to merge rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some arbitrary data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;raw_SBI:&lt;/P&gt;&lt;P&gt;Load Inline [&lt;/P&gt;&lt;P&gt;sbi, name&lt;/P&gt;&lt;P&gt;1, sbiname1&lt;/P&gt;&lt;P&gt;2, sbiname2&lt;/P&gt;&lt;P&gt;3, sbiname3&lt;/P&gt;&lt;P&gt;4, sbiname4 ];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SBI:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;sbi,&lt;/P&gt;&lt;P&gt;Left(name, '7') as sbi_name&lt;/P&gt;&lt;P&gt;Resident raw_SBI;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;raw_names:&lt;/P&gt;&lt;P&gt;Load Inline[&lt;/P&gt;&lt;P&gt;sbi, section&lt;/P&gt;&lt;P&gt;1, section1&lt;/P&gt;&lt;P&gt;2, section2&lt;/P&gt;&lt;P&gt;3, section3&lt;/P&gt;&lt;P&gt;4, section4];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;names:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;sbi,&lt;/P&gt;&lt;P&gt;Left(section, '7') as section_name&lt;/P&gt;&lt;P&gt;Resident raw_names;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the end result will provide me a table like:&lt;/P&gt;&lt;P&gt;sbi, section_name, sbi_name&lt;/P&gt;&lt;P&gt;1, section, name&lt;/P&gt;&lt;P&gt;2, section, name&lt;/P&gt;&lt;P&gt;3, section, name&lt;/P&gt;&lt;P&gt;4, section, name&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:53:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Merge-Join-two-resident-tables/m-p/1579005#M42233</guid>
      <dc:creator>klikgevoel</dc:creator>
      <dc:date>2024-11-16T20:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Merge / Join two resident tables</title>
      <link>https://community.qlik.com/t5/App-Development/Merge-Join-two-resident-tables/m-p/1579014#M42236</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;raw_SBI:
Load * Inline [
sbi, name
1, sbiname1
2, sbiname2
3, sbiname3
4, sbiname4 ]; 

SBI:
NoConcatenate
Load
sbi,
Left(name, '7') as sbi_name
Resident raw_SBI; 

raw_names:
Load * Inline [
sbi, section
1, section1
2, section2
3, section3
4, section4];

names:
left join (SBI)
Load
sbi,
Left(section, '7') as section_name
Resident raw_names; DROP Tables raw_names,raw_SBI;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 10 May 2019 13:59:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Merge-Join-two-resident-tables/m-p/1579014#M42236</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-05-10T13:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Merge / Join two resident tables</title>
      <link>https://community.qlik.com/t5/App-Development/Merge-Join-two-resident-tables/m-p/1580416#M42379</link>
      <description>&lt;P&gt;For some reason the last part of the code did not work at my end (i.e. names: left join (sbi) etc.)&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a work around I simply used the statement left join (sbi), and used that very same name in another resident load. So after the left join the table is named sbi instead of names.&lt;/P&gt;&lt;P&gt;Thanks for your help anyway &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 12:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Merge-Join-two-resident-tables/m-p/1580416#M42379</guid>
      <dc:creator>klikgevoel</dc:creator>
      <dc:date>2019-05-15T12:46:28Z</dc:date>
    </item>
  </channel>
</rss>

