<?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: Help and info with Cartesian Product in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-and-info-with-Cartesian-Product/m-p/1426571#M809314</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A cartesian product itself isn't bad - it depends on what do you want to do. Usually it will be created with joins between tables and if there are no common keys you could get depending on the join-type a cartesian product. The more important point will therefore be to understand how joins work and when they could have unexpected results - when maybe the keys are missing or in a different relation as assumed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore beside the above mentioned link take a look here: &lt;A href="https://en.wikipedia.org/wiki/Join_%28SQL%29" title="https://en.wikipedia.org/wiki/Join_%28SQL%29"&gt;Join (SQL) - Wikipedia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Oct 2017 13:30:50 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2017-10-10T13:30:50Z</dc:date>
    <item>
      <title>Help and info with Cartesian Product</title>
      <link>https://community.qlik.com/t5/QlikView/Help-and-info-with-Cartesian-Product/m-p/1426567#M809310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi can someone give me information and description on when a Cartesian product is made?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Description&lt;/P&gt;&lt;P&gt;-Disadvantages&lt;/P&gt;&lt;P&gt;-Benefits in some cases&lt;/P&gt;&lt;P&gt;-how it is created &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anything else that you can think of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks guys&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/Help-and-info-with-Cartesian-Product/m-p/1426567#M809310</guid>
      <dc:creator>aaronnayan</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help and info with Cartesian Product</title>
      <link>https://community.qlik.com/t5/QlikView/Help-and-info-with-Cartesian-Product/m-p/1426568#M809311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you should start here: &lt;A href="https://en.wikipedia.org/wiki/Cartesian_product" title="https://en.wikipedia.org/wiki/Cartesian_product"&gt;Cartesian product - Wikipedia&lt;/A&gt;. What is the aim behind your question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:15:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-and-info-with-Cartesian-Product/m-p/1426568#M809311</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-10-10T13:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help and info with Cartesian Product</title>
      <link>https://community.qlik.com/t5/QlikView/Help-and-info-with-Cartesian-Product/m-p/1426569#M809312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to give an overview on what it is and why it is bad and how it is formed all in a short summary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-and-info-with-Cartesian-Product/m-p/1426569#M809312</guid>
      <dc:creator>aaronnayan</dc:creator>
      <dc:date>2017-10-10T13:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help and info with Cartesian Product</title>
      <link>https://community.qlik.com/t5/QlikView/Help-and-info-with-Cartesian-Product/m-p/1426570#M809313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is a Cartesian product?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you join two tables (A and B) together which have no common fields, all combinations of your first table will be joined to all combinations of your second table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1&lt;/P&gt;&lt;P&gt;Field 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field 2&lt;/P&gt;&lt;P&gt;f1v1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f2v1&lt;/P&gt;&lt;P&gt;f1v2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f2v2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;P&gt;Field 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field 4&lt;/P&gt;&lt;P&gt;f3v1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f4v1&lt;/P&gt;&lt;P&gt;f3v2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f4v2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cartesian product&lt;/P&gt;&lt;P&gt;Field 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field 4&lt;/P&gt;&lt;P&gt;f1v1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f2v1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f3v1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f4v1&lt;/P&gt;&lt;P&gt;f1v1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f2v1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f3v2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f4v2&lt;/P&gt;&lt;P&gt;f1v2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f2v2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f3v1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f4v1&lt;/P&gt;&lt;P&gt;f1v2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f2v2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f3v2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f4v2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Disadvantages&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the main disadvantage is the sheer amount of memory required when dealing with large tables. Also you will be duplicating data with little benefit. Why not just keep your source tables separate if they have no relationship?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Benefits&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The one time I would consider using a cartesian join is when creating an As At calendar. There are several examples of how to do this here on the community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:20:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-and-info-with-Cartesian-Product/m-p/1426570#M809313</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2017-10-10T13:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help and info with Cartesian Product</title>
      <link>https://community.qlik.com/t5/QlikView/Help-and-info-with-Cartesian-Product/m-p/1426571#M809314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A cartesian product itself isn't bad - it depends on what do you want to do. Usually it will be created with joins between tables and if there are no common keys you could get depending on the join-type a cartesian product. The more important point will therefore be to understand how joins work and when they could have unexpected results - when maybe the keys are missing or in a different relation as assumed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore beside the above mentioned link take a look here: &lt;A href="https://en.wikipedia.org/wiki/Join_%28SQL%29" title="https://en.wikipedia.org/wiki/Join_%28SQL%29"&gt;Join (SQL) - Wikipedia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:30:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-and-info-with-Cartesian-Product/m-p/1426571#M809314</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-10-10T13:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help and info with Cartesian Product</title>
      <link>https://community.qlik.com/t5/QlikView/Help-and-info-with-Cartesian-Product/m-p/1426572#M809315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;why it is bad&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not always - I have on several occasions deliberately constructed a Cartesian product because it was needed for certain types of analysis. However, if that is not the intention, then they can easily blow up to consume all available memory followed by a crash...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-and-info-with-Cartesian-Product/m-p/1426572#M809315</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-10-10T13:32:30Z</dc:date>
    </item>
  </channel>
</rss>

