<?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 JOINS in Qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/JOINS-in-Qlikview/m-p/1651205#M729643</link>
    <description>&lt;UL&gt;&lt;LI&gt;The JOIN statement is a prefix to the LOAD statement. It is used to join the table that is being loaded to a previously loaded table.&lt;/LI&gt;&lt;LI&gt;The two tables are joined using a natural join, this means that the columns in both tables are compared and the join is made over those columns that have the same column names. This means that if multiple columns are shared between tables, the match will be made over the distinct combinations of those columns.&lt;/LI&gt;&lt;LI&gt;By default, QlikView performs an outer join. However, in SQL by default join is inner join.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;There are 4 type of joins-&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Left Join&lt;/LI&gt;&lt;LI&gt;Right Join&lt;/LI&gt;&lt;LI&gt;Inner Join&lt;/LI&gt;&lt;LI&gt;Outer Join&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Left Join&lt;/STRONG&gt;- All rows from the first table and those rows from the second table that have a corresponding key in the first table, will be included in the result. When no match is found, null values will be shown for the columns that are unique to the second table.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Left.JPG" style="width: 255px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24406i01A70711C586E97A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Left.JPG" alt="Left.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Right Join-&lt;/STRONG&gt; All rows from the second table and those rows from the first table which have a corresponding key in the second table, will be included in the result. When no match is found, null values will be shown for the columns that are unique to the first table.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Left.JPG" style="width: 257px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24407i35F61190569262B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Left.JPG" alt="Left.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Inner Join-&lt;/STRONG&gt; Only rows that can be matched between both tables will be kept in the result.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Left.JPG" style="width: 247px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24408i75F1D81EFA3E4BBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Left.JPG" alt="Left.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Outer Join-&lt;/STRONG&gt; All rows will be kept in the result, rows that do not have a corresponding value in the other table will get null values for the fields that are unique to that table. When no prefix is specified, this is the default join type that will be used.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Left.JPG" style="width: 263px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24409i625F1276E37B7E3E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Left.JPG" alt="Left.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For Example-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Suppose there are 2 tables&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt; * Inline&lt;BR /&gt;[&lt;BR /&gt;Key, ColA&lt;BR /&gt;1,R1&lt;BR /&gt;2,R2&lt;BR /&gt;3,R3&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Table2:&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt; * Inline&lt;BR /&gt;[&lt;BR /&gt;Key, ColC&lt;BR /&gt;1,F1&lt;BR /&gt;2,F2&lt;BR /&gt;4,F4&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Left.JPG" style="width: 359px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24410i9E80016180E54D23/image-size/large?v=v2&amp;amp;px=999" role="button" title="Left.JPG" alt="Left.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 19:35:21 GMT</pubDate>
    <dc:creator>srishsum2017</dc:creator>
    <dc:date>2024-11-16T19:35:21Z</dc:date>
    <item>
      <title>JOINS in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/JOINS-in-Qlikview/m-p/1651205#M729643</link>
      <description>&lt;UL&gt;&lt;LI&gt;The JOIN statement is a prefix to the LOAD statement. It is used to join the table that is being loaded to a previously loaded table.&lt;/LI&gt;&lt;LI&gt;The two tables are joined using a natural join, this means that the columns in both tables are compared and the join is made over those columns that have the same column names. This means that if multiple columns are shared between tables, the match will be made over the distinct combinations of those columns.&lt;/LI&gt;&lt;LI&gt;By default, QlikView performs an outer join. However, in SQL by default join is inner join.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;There are 4 type of joins-&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Left Join&lt;/LI&gt;&lt;LI&gt;Right Join&lt;/LI&gt;&lt;LI&gt;Inner Join&lt;/LI&gt;&lt;LI&gt;Outer Join&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Left Join&lt;/STRONG&gt;- All rows from the first table and those rows from the second table that have a corresponding key in the first table, will be included in the result. When no match is found, null values will be shown for the columns that are unique to the second table.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Left.JPG" style="width: 255px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24406i01A70711C586E97A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Left.JPG" alt="Left.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Right Join-&lt;/STRONG&gt; All rows from the second table and those rows from the first table which have a corresponding key in the second table, will be included in the result. When no match is found, null values will be shown for the columns that are unique to the first table.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Left.JPG" style="width: 257px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24407i35F61190569262B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Left.JPG" alt="Left.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Inner Join-&lt;/STRONG&gt; Only rows that can be matched between both tables will be kept in the result.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Left.JPG" style="width: 247px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24408i75F1D81EFA3E4BBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Left.JPG" alt="Left.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Outer Join-&lt;/STRONG&gt; All rows will be kept in the result, rows that do not have a corresponding value in the other table will get null values for the fields that are unique to that table. When no prefix is specified, this is the default join type that will be used.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Left.JPG" style="width: 263px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24409i625F1276E37B7E3E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Left.JPG" alt="Left.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For Example-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Suppose there are 2 tables&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt; * Inline&lt;BR /&gt;[&lt;BR /&gt;Key, ColA&lt;BR /&gt;1,R1&lt;BR /&gt;2,R2&lt;BR /&gt;3,R3&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Table2:&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt; * Inline&lt;BR /&gt;[&lt;BR /&gt;Key, ColC&lt;BR /&gt;1,F1&lt;BR /&gt;2,F2&lt;BR /&gt;4,F4&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Left.JPG" style="width: 359px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24410i9E80016180E54D23/image-size/large?v=v2&amp;amp;px=999" role="button" title="Left.JPG" alt="Left.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:35:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/JOINS-in-Qlikview/m-p/1651205#M729643</guid>
      <dc:creator>srishsum2017</dc:creator>
      <dc:date>2024-11-16T19:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: JOINS in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/JOINS-in-Qlikview/m-p/1660562#M729644</link>
      <description>&lt;P&gt;Nice share！&lt;/P&gt;</description>
      <pubDate>Wed, 25 Dec 2019 01:42:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/JOINS-in-Qlikview/m-p/1660562#M729644</guid>
      <dc:creator>alex00321</dc:creator>
      <dc:date>2019-12-25T01:42:39Z</dc:date>
    </item>
  </channel>
</rss>

