<?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 help joining multiple tables to a master table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/help-joining-multiple-tables-to-a-master-table/m-p/1925680#M76192</link>
    <description>&lt;P&gt;I'm struggling figuring out how to join multiple tables to a master table with QVDs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Master Table: Vendor&lt;BR /&gt;Join field: Vendor ID&lt;/P&gt;
&lt;P&gt;Left Join Table 1: Invoice&lt;BR /&gt;Join Field: Vendor ID&lt;/P&gt;
&lt;P&gt;Left Join Table 2: Purchase Order&lt;BR /&gt;Join Field: Vendor ID&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is my sample code in Qlik:&lt;BR /&gt;&lt;SPAN&gt;I don't think this is correct because technically after the 1st join I'm trying to join the last table on a table that includes joined data already.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The SQL equivalent of what I want is the following&lt;/P&gt;
&lt;P&gt;SELECT A.*, B.*, C.*&lt;BR /&gt;FROM VENDOR A&lt;BR /&gt;LEFT JOIN PURCHASE_ORDER B ON (A.VENDORID = B.VENDORID)&lt;BR /&gt;LEFT JOIN INVOICES C ON (A.VENDORID = C.VENDORID)&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Sample QlikSense Code&amp;nbsp;&lt;BR /&gt;Vendor:&lt;BR /&gt;LOAD&amp;nbsp;inv_vdr_join_key, po_vdr_join_key, *&lt;BR /&gt;FROM vendor.qvd&lt;BR /&gt;(qvd);&lt;BR /&gt;&lt;BR /&gt;Invoices:&lt;BR /&gt;LOAD&amp;nbsp;inv_vdr_join_key, *&lt;BR /&gt;FROM Invoices.qvd&lt;BR /&gt;(qvd);&lt;/P&gt;
&lt;P&gt;PurchaseOrders:&lt;BR /&gt;LOAD&amp;nbsp; po_vdr_join_key, *&lt;BR /&gt;FROM PurchaseOrders.qvd&lt;BR /&gt;(qvd);&lt;/P&gt;
&lt;P&gt;Final_Temp:&lt;BR /&gt;LEFT JOIN (Vendor)&lt;BR /&gt;LOAD *&lt;BR /&gt;Resident Invoices;&lt;BR /&gt;Drop Table Invoices;&lt;BR /&gt;rename table Vendor to Final_Temp;&lt;BR /&gt;&lt;BR /&gt;Final_Table:&lt;BR /&gt;LEFT JOIN (Final_Temp)&lt;BR /&gt;Resident PurchaseOrders;&lt;BR /&gt;Drop Table PurchaseOrders;&lt;BR /&gt;rename table Vendor to Final_Table;&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2022 13:26:25 GMT</pubDate>
    <dc:creator>stsk</dc:creator>
    <dc:date>2022-05-03T13:26:25Z</dc:date>
    <item>
      <title>help joining multiple tables to a master table</title>
      <link>https://community.qlik.com/t5/App-Development/help-joining-multiple-tables-to-a-master-table/m-p/1925680#M76192</link>
      <description>&lt;P&gt;I'm struggling figuring out how to join multiple tables to a master table with QVDs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Master Table: Vendor&lt;BR /&gt;Join field: Vendor ID&lt;/P&gt;
&lt;P&gt;Left Join Table 1: Invoice&lt;BR /&gt;Join Field: Vendor ID&lt;/P&gt;
&lt;P&gt;Left Join Table 2: Purchase Order&lt;BR /&gt;Join Field: Vendor ID&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is my sample code in Qlik:&lt;BR /&gt;&lt;SPAN&gt;I don't think this is correct because technically after the 1st join I'm trying to join the last table on a table that includes joined data already.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The SQL equivalent of what I want is the following&lt;/P&gt;
&lt;P&gt;SELECT A.*, B.*, C.*&lt;BR /&gt;FROM VENDOR A&lt;BR /&gt;LEFT JOIN PURCHASE_ORDER B ON (A.VENDORID = B.VENDORID)&lt;BR /&gt;LEFT JOIN INVOICES C ON (A.VENDORID = C.VENDORID)&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Sample QlikSense Code&amp;nbsp;&lt;BR /&gt;Vendor:&lt;BR /&gt;LOAD&amp;nbsp;inv_vdr_join_key, po_vdr_join_key, *&lt;BR /&gt;FROM vendor.qvd&lt;BR /&gt;(qvd);&lt;BR /&gt;&lt;BR /&gt;Invoices:&lt;BR /&gt;LOAD&amp;nbsp;inv_vdr_join_key, *&lt;BR /&gt;FROM Invoices.qvd&lt;BR /&gt;(qvd);&lt;/P&gt;
&lt;P&gt;PurchaseOrders:&lt;BR /&gt;LOAD&amp;nbsp; po_vdr_join_key, *&lt;BR /&gt;FROM PurchaseOrders.qvd&lt;BR /&gt;(qvd);&lt;/P&gt;
&lt;P&gt;Final_Temp:&lt;BR /&gt;LEFT JOIN (Vendor)&lt;BR /&gt;LOAD *&lt;BR /&gt;Resident Invoices;&lt;BR /&gt;Drop Table Invoices;&lt;BR /&gt;rename table Vendor to Final_Temp;&lt;BR /&gt;&lt;BR /&gt;Final_Table:&lt;BR /&gt;LEFT JOIN (Final_Temp)&lt;BR /&gt;Resident PurchaseOrders;&lt;BR /&gt;Drop Table PurchaseOrders;&lt;BR /&gt;rename table Vendor to Final_Table;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 13:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/help-joining-multiple-tables-to-a-master-table/m-p/1925680#M76192</guid>
      <dc:creator>stsk</dc:creator>
      <dc:date>2022-05-03T13:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: help joining multiple tables to a master table</title>
      <link>https://community.qlik.com/t5/App-Development/help-joining-multiple-tables-to-a-master-table/m-p/1925816#M76211</link>
      <description>&lt;P&gt;Just join immediately&lt;/P&gt;
&lt;P&gt;Vendor:&lt;BR /&gt;LOAD&amp;nbsp;inv_vdr_join_key, po_vdr_join_key, *&lt;BR /&gt;FROM vendor.qvd&lt;BR /&gt;(qvd);&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Left Join(Vendor)&lt;/STRONG&gt;&lt;BR /&gt;LOAD&amp;nbsp;inv_vdr_join_key, *&lt;BR /&gt;FROM Invoices.qvd&lt;BR /&gt;(qvd);&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Left Join(Vendor)&lt;/STRONG&gt;&lt;BR /&gt;LOAD&amp;nbsp; po_vdr_join_key, *&lt;BR /&gt;FROM PurchaseOrders.qvd&lt;BR /&gt;(qvd);&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 17:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/help-joining-multiple-tables-to-a-master-table/m-p/1925816#M76211</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-05-03T17:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: help joining multiple tables to a master table</title>
      <link>https://community.qlik.com/t5/App-Development/help-joining-multiple-tables-to-a-master-table/m-p/1931749#M76778</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;you can also implement this approach :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-Documents/link-table/ta-p/1883375" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Sense-Documents/link-table/ta-p/1883375&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Vikas&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 12:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/help-joining-multiple-tables-to-a-master-table/m-p/1931749#M76778</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2022-05-17T12:59:15Z</dc:date>
    </item>
  </channel>
</rss>

