<?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. :Self join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Self-join/m-p/236019#M87242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You have to use the Hierarchy.&lt;/P&gt;&lt;P&gt;Like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;HIERARCHY (Emp.Id, Mgr.ID, Name, Manager, Employe, Path, '/', Niveau)&lt;BR /&gt;LOAD *&lt;BR /&gt;RESIDENT Emp;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 May 2010 09:53:02 GMT</pubDate>
    <dc:creator>martin59</dc:creator>
    <dc:date>2010-05-10T09:53:02Z</dc:date>
    <item>
      <title>Self join</title>
      <link>https://community.qlik.com/t5/QlikView/Self-join/m-p/236018#M87241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to achieve self join ?&lt;/P&gt;&lt;P&gt;If table fields are :&lt;/P&gt;&lt;P&gt;Emp.Id&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;Mgr.ID&lt;/P&gt;&lt;P&gt;Salary&lt;/P&gt;&lt;P&gt;Here Mgr.ID is again Emp.ID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 09:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Self-join/m-p/236018#M87241</guid>
      <dc:creator>prabhu0505</dc:creator>
      <dc:date>2010-05-10T09:48:04Z</dc:date>
    </item>
    <item>
      <title>Re. :Self join</title>
      <link>https://community.qlik.com/t5/QlikView/Self-join/m-p/236019#M87242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You have to use the Hierarchy.&lt;/P&gt;&lt;P&gt;Like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;HIERARCHY (Emp.Id, Mgr.ID, Name, Manager, Employe, Path, '/', Niveau)&lt;BR /&gt;LOAD *&lt;BR /&gt;RESIDENT Emp;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 09:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Self-join/m-p/236019#M87242</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2010-05-10T09:53:02Z</dc:date>
    </item>
    <item>
      <title>Re. :Self join</title>
      <link>https://community.qlik.com/t5/QlikView/Self-join/m-p/236020#M87243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ro reply, Martin.&lt;/P&gt;&lt;P&gt;But can you explain me what is the use of Hierarchy over here?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 09:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Self-join/m-p/236020#M87243</guid>
      <dc:creator>prabhu0505</dc:creator>
      <dc:date>2010-05-10T09:57:01Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Self join</title>
      <link>https://community.qlik.com/t5/QlikView/Self-join/m-p/236021#M87244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With Hierarchy, you'll have one table with all levels of the Hierarchy. So, you can see the manager of the selected employee. Datas are in the same table.&lt;/P&gt;&lt;P&gt;Look this (QlikView Help) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;&lt;BR style="margin-bottom:0px;" /&gt;The hierarchy keyword is a prefix to the &lt;A&gt;load&lt;/A&gt; and &lt;A&gt;select&lt;/A&gt; statements. It is used to transform an adjacent nodes table to an expanded nodes table. Hence, the input table must be an adjacent nodes table. The output of the hierarchy prefix is an expanded nodes table with all the needed additional fields.&lt;BR style="margin-bottom:0px;background-color:transparent;" /&gt;Adjacent nodes tables are tables where each record corresponds to a node and has a field that contains a reference to the parent node. In such a table the node is stored on one record only but can still have any number of children. The table may of course contain additional fields describing attributes for the nodes.&lt;BR style="margin-bottom:0px;background-color:transparent;" /&gt;In expanded nodes tables each level in the hierarchy is stored in a separate field. The levels in an expanded nodes table can easily be used e.g. in a pivot table or a in a tree structure. More details about adjacent nodes tables and expanded nodes tables can be found in the Reference Manuals.&lt;BR style="margin-bottom:0px;" /&gt;Normally the input table has exactly one record per node and in such a case the output table will contain the same number of records. However, sometimes there are nodes with multiple parents, i.e. one node is represented by several records. If so, the output table may have more records than the input table.&lt;BR style="margin-bottom:0px;" /&gt;All nodes without a parent id or with a parent id not found in the nodeID column will be considered as roots. Also, only nodes with a connection to a root node - direct or indirect - will be loaded, thus avoiding circular references.&lt;BR style="margin-bottom:0px;" /&gt;Additional fields containing the name of the parent node, the path of the node and the depth of the node can be created.&lt;BR style="margin-bottom:0px;" /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="margin-bottom:0px;"&gt;Martin&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 10:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Self-join/m-p/236021#M87244</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2010-05-10T10:16:57Z</dc:date>
    </item>
    <item>
      <title>Re. :Self join</title>
      <link>https://community.qlik.com/t5/QlikView/Self-join/m-p/236022#M87245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;K:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; EmployeeId, Name, MgrID, Salary&lt;BR /&gt; 1, Anthony, 5, 8000&lt;BR /&gt; 2, Peter, 5, 8500&lt;BR /&gt; 3, Keanu, 5, 10000&lt;BR /&gt; 4, William, 5, 20000&lt;BR /&gt; 5, Jessy, 5, 50000&lt;BR /&gt;];&lt;BR /&gt;P:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; EmployeeId, Name, MgrID, Salary&lt;BR /&gt; 1, Anthony, 5, 8000&lt;BR /&gt; 2, Peter, 5, 8500&lt;BR /&gt; 3, Keanu, 5, 10000&lt;BR /&gt; 4, William, 5, 20000&lt;BR /&gt; 5, Jessy, 5, 50000&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;it will automatically join the data, since all the fields have same name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 10:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Self-join/m-p/236022#M87245</guid>
      <dc:creator />
      <dc:date>2010-05-10T10:33:47Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Self join</title>
      <link>https://community.qlik.com/t5/QlikView/Self-join/m-p/236023#M87246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look this application&lt;/P&gt;&lt;P&gt;Hop it's gonna be useful&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 10:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Self-join/m-p/236023#M87246</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2010-05-10T10:53:49Z</dc:date>
    </item>
    <item>
      <title>Self join</title>
      <link>https://community.qlik.com/t5/QlikView/Self-join/m-p/236024#M87247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LEFT JOIN (YourTable)&lt;BR /&gt;LOAD&lt;BR /&gt; Emp.Id as Mgr.ID&lt;BR /&gt;,Name as "Manager Name"&lt;BR /&gt;RESIDENT YourTable&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 21:40:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Self-join/m-p/236024#M87247</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-05-10T21:40:42Z</dc:date>
    </item>
    <item>
      <title>Self join</title>
      <link>https://community.qlik.com/t5/QlikView/Self-join/m-p/236025#M87248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply&lt;/P&gt;&lt;P&gt;John, this is really an useful tip.&lt;/P&gt;&lt;P&gt;Martin, thnx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 06:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Self-join/m-p/236025#M87248</guid>
      <dc:creator>prabhu0505</dc:creator>
      <dc:date>2010-05-12T06:28:28Z</dc:date>
    </item>
  </channel>
</rss>

