<?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 Connections between tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Connections-between-tables/m-p/307104#M113446</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, maybe Im not clear enough &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. This is how it looks like now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;purchase:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; purchaseID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customerID&lt;/P&gt;&lt;P&gt;From purchase_table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;customer:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customerID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customerID_2&lt;/P&gt;&lt;P&gt;from customer_table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;account:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; accountID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customerID_3&lt;/P&gt;&lt;P&gt;From account_table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) one purchaseID has only one customerID&lt;/P&gt;&lt;P&gt;2) one customerID can only be connected to one customerID_2 or null&lt;/P&gt;&lt;P&gt;3) one accountID can have many purchaseID&lt;/P&gt;&lt;P&gt;4) one accountID has a connection to either one customerID or customerID_2 not both, and that ID is stored as customerID_3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem 1 is that we don't know what customerID is connected to what customerID_2 throught the purchase_table. We need a connection between purchase_table and customer_table to know that, this is easy done with a join on customerID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem 2 is that customerID_3 in account_table contains both customerID and customerID_2 in the same column. Its easy to find out all accountID that is using customerID as customerID_3 and from that find out all purchaseID. But we also want to find out which accountID that is connected to a customerID_2 and get their purchaseID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Puh, its not simple to explain this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 May 2011 08:34:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-18T08:34:09Z</dc:date>
    <item>
      <title>Connections between tables</title>
      <link>https://community.qlik.com/t5/QlikView/Connections-between-tables/m-p/307100#M113442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three tables that I want to join in a good way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1: purchase (purchaseID, customerID) -&amp;gt; customerID is a unique number to identify a customer&lt;/P&gt;&lt;P&gt;Table 2: customer (customerID, customerID_2) -&amp;gt; one customer could have many customerID, therefor a customerID_2 could have many customerID&lt;/P&gt;&lt;P&gt;Table 3: account (accountID, customerID_3) -&amp;gt; customerID_3 contains both customerID and customerID_2, and one accountID could only have one customerID_3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do now is to find out all purchaseID connected to a accountID. How can I solve this the best way using customer as a connection table. The best thing would be if instead putting everything in one table, have the three tables separeted with connections between them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ahead!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 06:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connections-between-tables/m-p/307100#M113442</guid>
      <dc:creator />
      <dc:date>2011-05-18T06:43:29Z</dc:date>
    </item>
    <item>
      <title>Connections between tables</title>
      <link>https://community.qlik.com/t5/QlikView/Connections-between-tables/m-p/307101#M113443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Please try the below:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="untitled.bmp" class="jive-image" src="https://community.qlik.com/legacyfs/online/4444_untitled.bmp" /&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 07:22:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connections-between-tables/m-p/307101#M113443</guid>
      <dc:creator>montubhardwaj</dc:creator>
      <dc:date>2011-05-18T07:22:13Z</dc:date>
    </item>
    <item>
      <title>Connections between tables</title>
      <link>https://community.qlik.com/t5/QlikView/Connections-between-tables/m-p/307102#M113444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It did work a bit, but im missing some accountID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to clarify; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- all purchaseID have one customerID&lt;/P&gt;&lt;P&gt;- one customerID_2 could have many customerID, these are not shown in the purchase table&lt;/P&gt;&lt;P&gt;- in the account table one accountID have a connection to either a customerID or a customerID_2, these are stored as customerID_3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use your script I only get the accountID which have a connection to a customerID but not to those accountID which have the customerID_2 in the column customerID_3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to have these three tables separeted and not joined in only one table, because there is other columns in each tables that we want to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ahead!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 07:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connections-between-tables/m-p/307102#M113444</guid>
      <dc:creator />
      <dc:date>2011-05-18T07:55:42Z</dc:date>
    </item>
    <item>
      <title>Connections between tables</title>
      <link>https://community.qlik.com/t5/QlikView/Connections-between-tables/m-p/307103#M113445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok... So if I am getting you right, you key field should be this way so that it will cover all the Customer Ids. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;purchase:&lt;/P&gt;&lt;P&gt; Load purchaseID as ID, &lt;/P&gt;&lt;P&gt;customerID_Pur &lt;/P&gt;&lt;P&gt;From purchase_table; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;customer: &lt;/P&gt;&lt;P&gt;Left join &lt;/P&gt;&lt;P&gt;Load customerID as ID, &lt;/P&gt;&lt;P&gt;customerID_2_Cust &lt;/P&gt;&lt;P&gt;From customer_table; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;account: &lt;/P&gt;&lt;P&gt;Left join &lt;/P&gt;&lt;P&gt;Load accountID as ID,&lt;/P&gt;&lt;P&gt; customerID_3 _Acct &lt;/P&gt;&lt;P&gt;From account_table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is not working, maybe I got your requirements wrongly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 08:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connections-between-tables/m-p/307103#M113445</guid>
      <dc:creator>montubhardwaj</dc:creator>
      <dc:date>2011-05-18T08:19:56Z</dc:date>
    </item>
    <item>
      <title>Connections between tables</title>
      <link>https://community.qlik.com/t5/QlikView/Connections-between-tables/m-p/307104#M113446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, maybe Im not clear enough &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. This is how it looks like now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;purchase:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; purchaseID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customerID&lt;/P&gt;&lt;P&gt;From purchase_table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;customer:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customerID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customerID_2&lt;/P&gt;&lt;P&gt;from customer_table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;account:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; accountID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customerID_3&lt;/P&gt;&lt;P&gt;From account_table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) one purchaseID has only one customerID&lt;/P&gt;&lt;P&gt;2) one customerID can only be connected to one customerID_2 or null&lt;/P&gt;&lt;P&gt;3) one accountID can have many purchaseID&lt;/P&gt;&lt;P&gt;4) one accountID has a connection to either one customerID or customerID_2 not both, and that ID is stored as customerID_3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem 1 is that we don't know what customerID is connected to what customerID_2 throught the purchase_table. We need a connection between purchase_table and customer_table to know that, this is easy done with a join on customerID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem 2 is that customerID_3 in account_table contains both customerID and customerID_2 in the same column. Its easy to find out all accountID that is using customerID as customerID_3 and from that find out all purchaseID. But we also want to find out which accountID that is connected to a customerID_2 and get their purchaseID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Puh, its not simple to explain this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 08:34:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connections-between-tables/m-p/307104#M113446</guid>
      <dc:creator />
      <dc:date>2011-05-18T08:34:09Z</dc:date>
    </item>
    <item>
      <title>Connections between tables</title>
      <link>https://community.qlik.com/t5/QlikView/Connections-between-tables/m-p/307105#M113447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the 1st two tables, i ll approach this way i.e. rather than doing a QV JOIN,I will join explicitly so that both Purchase and Customer tablesare in 1 QV table.&lt;/P&gt;&lt;P&gt;By using below method, I think you should be able to find out which accountID that is connected to a customerID_2 and get their purchaseID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="untitled.bmp" class="jive-image" src="https://community.qlik.com/legacyfs/online/4453_untitled.bmp" /&gt;&lt;/P&gt;&lt;P&gt;Hope I am making some sense &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sharma&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #00b400; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 09:57:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connections-between-tables/m-p/307105#M113447</guid>
      <dc:creator>montubhardwaj</dc:creator>
      <dc:date>2011-05-18T09:57:12Z</dc:date>
    </item>
  </channel>
</rss>

