<?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: Relationship between tables in Data Modelling in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Relationship-between-tables-in-Data-Modelling/m-p/16744#M768926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-avatarid="5408" data-externalid="" data-online="false" data-presence="null" data-userid="277233" data-username="daniel.rodrigues" href="https://community.qlik.com/people/daniel.rodrigues" style="font-weight: bold; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #8b8b8b; background-color: #f2f2f2;"&gt;Daniel&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You for clear explanation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2018 16:52:32 GMT</pubDate>
    <dc:creator>suren946</dc:creator>
    <dc:date>2018-06-13T16:52:32Z</dc:date>
    <item>
      <title>Relationship between tables in Data Modelling</title>
      <link>https://community.qlik.com/t5/QlikView/Relationship-between-tables-in-Data-Modelling/m-p/16740#M768922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to find the relationship between two table is one-to-one or one-many or many-to-many?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found below link but unable to understand, could someone explain in detail&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlikview.com/thread/188727" title="https://community.qlikview.com/thread/188727" target="_blank"&gt;data model relationships | Qlik Community&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationship-between-tables-in-Data-Modelling/m-p/16740#M768922</guid>
      <dc:creator>suren946</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship between tables in Data Modelling</title>
      <link>https://community.qlik.com/t5/QlikView/Relationship-between-tables-in-Data-Modelling/m-p/16741#M768923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlikview.com/thread/188727" title="https://community.qlikview.com/thread/188727"&gt;data model relationships | Qlik Community&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 18:27:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationship-between-tables-in-Data-Modelling/m-p/16741#M768923</guid>
      <dc:creator>isingh30</dc:creator>
      <dc:date>2018-06-12T18:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship between tables in Data Modelling</title>
      <link>https://community.qlik.com/t5/QlikView/Relationship-between-tables-in-Data-Modelling/m-p/16742#M768924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&amp;nbsp; Ishtdeep,&lt;/P&gt;&lt;P&gt;I have already found this link but unable to understand. so looking for more information&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 01:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationship-between-tables-in-Data-Modelling/m-p/16742#M768924</guid>
      <dc:creator>suren946</dc:creator>
      <dc:date>2018-06-13T01:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship between tables in Data Modelling</title>
      <link>https://community.qlik.com/t5/QlikView/Relationship-between-tables-in-Data-Modelling/m-p/16743#M768925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;SPAN style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;A href="https://community.qlik.com/people/suren946"&gt;suren946&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you have these two tables below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Countries:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[ID, Country&lt;/P&gt;&lt;P&gt;1, EUA&lt;/P&gt;&lt;P&gt;2, Brazil&lt;/P&gt;&lt;P&gt;3, Japan&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cities:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[City, ID&lt;/P&gt;&lt;P&gt;Sao Paulo, 2&lt;/P&gt;&lt;P&gt;Tokyo, 3&lt;/P&gt;&lt;P&gt;New York, 1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The relationship between them is clearly one-to-one, but you can prove that by creating a third table with ID's from the first one and the count of occurrences of those ID's on the second table, like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDsCount:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Load ID&lt;/P&gt;&lt;P&gt;Resident Countries;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;Load ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(ID) As IDCount&lt;/P&gt;&lt;P&gt;Resident Cities&lt;/P&gt;&lt;P&gt;Group By ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="204995" alt="Capturar.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/204995_Capturar.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;As there is no record of IDCount greater than 1, we know the relationship between "&lt;SPAN style="font-size: 13.3333px;"&gt;Countries&lt;/SPAN&gt;" and "&lt;SPAN style="font-size: 13.3333px;"&gt;Cities&lt;/SPAN&gt;" tables is one-to-one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if we make this change to the second table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cities:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[City, ID&lt;/P&gt;&lt;P&gt;Sao Paulo, 2&lt;/P&gt;&lt;P&gt;San Diego, 1&lt;/P&gt;&lt;P&gt;Tokyo, 3&lt;/P&gt;&lt;P&gt;Rio de Janeiro, 2&lt;/P&gt;&lt;P&gt;New York, 1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And run script again, we end up with this result:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="204996" alt="Capturar 2.PNG" class="jive-image image-2" src="/legacyfs/online/204996_Capturar 2.PNG" style="font-size: 13.3333px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As now we have IDCount's greater than 1, the relationship between tables is one-to-many.&lt;/P&gt;&lt;P&gt;And from now, if we invert the search, counting the ID's from the second table on the first one, like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IDsCount:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;NoConcatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load ID&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Cities&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Left Join&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load ID,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(ID) As IDCount&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Countries&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Group By ID;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;...and find &lt;SPAN style="font-size: 13.3333px;"&gt;IDCount's &amp;gt;1, we actually have many-to-many relationship tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 03:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationship-between-tables-in-Data-Modelling/m-p/16743#M768925</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-13T03:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship between tables in Data Modelling</title>
      <link>https://community.qlik.com/t5/QlikView/Relationship-between-tables-in-Data-Modelling/m-p/16744#M768926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-avatarid="5408" data-externalid="" data-online="false" data-presence="null" data-userid="277233" data-username="daniel.rodrigues" href="https://community.qlik.com/people/daniel.rodrigues" style="font-weight: bold; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #8b8b8b; background-color: #f2f2f2;"&gt;Daniel&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You for clear explanation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 16:52:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationship-between-tables-in-Data-Modelling/m-p/16744#M768926</guid>
      <dc:creator>suren946</dc:creator>
      <dc:date>2018-06-13T16:52:32Z</dc:date>
    </item>
  </channel>
</rss>

