<?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 Hierarchy or Self join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hierarchy-or-Self-join/m-p/389380#M145299</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends:&lt;/P&gt;&lt;P&gt;I have the following table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dept_id,Dept_name,Parent_id,address,customer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this table Ancestor records are the one where Parent_Id = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if i write a sql statement, to get the ancestor record &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select dept_id,dept_name,address,customer&amp;nbsp; where Parent_Id =0 &lt;/P&gt;&lt;P&gt;for e.g. the ouput of this query can be dept_id =101 and dept_name = commercial&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now child records are also in the same table where Parent_id = 101&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the sql statement to get to the child records will be &lt;/P&gt;&lt;P&gt;select dept_id,dept_name where Parent_Id =101 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output of this statement will be the children belonging to Parent_id 101.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i achieve this in QV where if user select a parent , he should get all the children belonging to the parent with attributes like address and customer.&lt;/P&gt;&lt;P&gt;if a parent does not have a child then attributes of Parent should be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2012 04:03:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-29T04:03:47Z</dc:date>
    <item>
      <title>Hierarchy or Self join</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-or-Self-join/m-p/389380#M145299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends:&lt;/P&gt;&lt;P&gt;I have the following table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dept_id,Dept_name,Parent_id,address,customer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this table Ancestor records are the one where Parent_Id = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if i write a sql statement, to get the ancestor record &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select dept_id,dept_name,address,customer&amp;nbsp; where Parent_Id =0 &lt;/P&gt;&lt;P&gt;for e.g. the ouput of this query can be dept_id =101 and dept_name = commercial&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now child records are also in the same table where Parent_id = 101&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the sql statement to get to the child records will be &lt;/P&gt;&lt;P&gt;select dept_id,dept_name where Parent_Id =101 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output of this statement will be the children belonging to Parent_id 101.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i achieve this in QV where if user select a parent , he should get all the children belonging to the parent with attributes like address and customer.&lt;/P&gt;&lt;P&gt;if a parent does not have a child then attributes of Parent should be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 04:03:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-or-Self-join/m-p/389380#M145299</guid>
      <dc:creator />
      <dc:date>2012-11-29T04:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy or Self join</title>
      <link>https://community.qlik.com/t5/QlikView/Hierarchy-or-Self-join/m-p/389381#M145300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any suggestions ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 01:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hierarchy-or-Self-join/m-p/389381#M145300</guid>
      <dc:creator />
      <dc:date>2012-11-30T01:26:19Z</dc:date>
    </item>
  </channel>
</rss>

