<?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 Merging tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Merging-tables/m-p/812468#M286757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Question relating to granularity...&amp;nbsp; for optimal performance, here is my scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have table A, which includes PatientID, OrderID, and NurseID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have table B, which is a detail of the Order, with OrderID and DrugID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each OrderID in table A is 1 row of data.&amp;nbsp; An OrderID in table b can have 1 to multiple rows, depending on how many DrugID's were ordered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i merge these tables so they are using the same granularity?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table A:&lt;/P&gt;&lt;P&gt;OrderID 201&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table B:&lt;/P&gt;&lt;P&gt;OrderID 201&amp;nbsp; DrugID 1&lt;/P&gt;&lt;P&gt;OrderID 201&amp;nbsp; DrugID 2&lt;/P&gt;&lt;P&gt;OrderID 201&amp;nbsp; DrugID 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Nov 2014 21:07:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-11T21:07:49Z</dc:date>
    <item>
      <title>Merging tables</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-tables/m-p/812468#M286757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Question relating to granularity...&amp;nbsp; for optimal performance, here is my scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have table A, which includes PatientID, OrderID, and NurseID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have table B, which is a detail of the Order, with OrderID and DrugID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each OrderID in table A is 1 row of data.&amp;nbsp; An OrderID in table b can have 1 to multiple rows, depending on how many DrugID's were ordered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i merge these tables so they are using the same granularity?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table A:&lt;/P&gt;&lt;P&gt;OrderID 201&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table B:&lt;/P&gt;&lt;P&gt;OrderID 201&amp;nbsp; DrugID 1&lt;/P&gt;&lt;P&gt;OrderID 201&amp;nbsp; DrugID 2&lt;/P&gt;&lt;P&gt;OrderID 201&amp;nbsp; DrugID 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 21:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-tables/m-p/812468#M286757</guid>
      <dc:creator />
      <dc:date>2014-11-11T21:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Merging tables</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-tables/m-p/812469#M286758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.63636302948px;"&gt;- add &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.7272720336914px;"&gt;PatientID and NurseID to TableB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;- don't merge and stay with 2 tables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- concatenate &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 21:19:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-tables/m-p/812469#M286758</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-11-11T21:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Merging tables</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-tables/m-p/812470#M286759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how would I add them&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 21:22:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-tables/m-p/812470#M286759</guid>
      <dc:creator />
      <dc:date>2014-11-11T21:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Merging tables</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-tables/m-p/812471#M286760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/71025_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;tableA:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;load * inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;OrderID, PatientID, NurseID&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;201, P1, N1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;202, P2, N2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;tableB:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;load * inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;OrderID, DrugID&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;201,&amp;nbsp; DrugID 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;201,&amp;nbsp; DrugID 2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;201,&amp;nbsp; DrugID 3&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;join (tableB)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;load *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;resident tableA;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;DROP Table tableA;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 21:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-tables/m-p/812471#M286760</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-11-11T21:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Merging tables</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-tables/m-p/812472#M286761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok so I'm still new, but I asked a friend who's more experienced and he said that you should do a Left Join from Table 1 to Table 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (Table1)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DrugID;&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;[...\Datasources\Table2.qvd]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Just noticed someone else replied. Hope it worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 21:32:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-tables/m-p/812472#M286761</guid>
      <dc:creator />
      <dc:date>2014-11-11T21:32:47Z</dc:date>
    </item>
  </channel>
</rss>

