<?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 table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Relationship-table/m-p/1090624#M362842</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that can be done. But I would risk to lose data in case if the responsibility for a given cli_id was not defined in the Responsibilities table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is secondary, in my opinion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The primary problem is that the table Responsibilities has 2 fields (cli_id, related_relationship_id) which point to the same field (cli_id in the Clients table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This case is worsened by the fact that the related_relationship_id can point to 2 different fields: cli_id and employee_id. But this does not generally change the primary problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, I can't create a data model which would allow me to create a table with information like "Client A has a manager called Client B".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Mar 2016 16:14:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-29T16:14:52Z</dc:date>
    <item>
      <title>Relationship table</title>
      <link>https://community.qlik.com/t5/QlikView/Relationship-table/m-p/1090618#M362836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need a suggestion on how to implement the relationship table which would allow me to get information like "{Client A} {has a relationship manager called} {Name B}".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I have:&lt;/P&gt;&lt;P&gt;- a table Clients (cli_id, employee_id, etc)&lt;/P&gt;&lt;P&gt;- a table Employees (employee_id, etc.)&lt;/P&gt;&lt;P&gt;- a table Responsibilities (cli_id, relationship_type, related_relationship_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Responsibilities table defines the relationships between the cli_id and another cli_id or employee_id. The field Related_Relationship_Id can have either the code of cli_id or employee_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion on how to implement this is very welcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 14:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationship-table/m-p/1090618#M362836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-29T14:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship table</title>
      <link>https://community.qlik.com/t5/QlikView/Relationship-table/m-p/1090619#M362837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are the relations between client and employee that are registered in the Clients table also registered in Responsibilities table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 15:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationship-table/m-p/1090619#M362837</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-29T15:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship table</title>
      <link>https://community.qlik.com/t5/QlikView/Relationship-table/m-p/1090620#M362838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, the Responsibilities table has just 3 fields:&lt;/P&gt;&lt;P&gt; - cli_id which is the primary key which connects it to the Clients table&lt;/P&gt;&lt;P&gt; - relationship_type which has text values like " has a relationship manager called "&lt;/P&gt;&lt;P&gt; - related_relationship_id which might contain codes from Clients or from Employees&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 15:52:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationship-table/m-p/1090620#M362838</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-29T15:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship table</title>
      <link>https://community.qlik.com/t5/QlikView/Relationship-table/m-p/1090621#M362839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What kind of relationship is there between clients and employees? Why aren't they also registered in the Responsibilities table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually it doesn't matter. Add those relationships to the Responsibilities table so you can drop the employee_id from the clients table. That way all the relations between clients and employees are in the Responsibilities table and you can associate all the tables through that table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 15:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationship-table/m-p/1090621#M362839</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-29T15:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship table</title>
      <link>https://community.qlik.com/t5/QlikView/Relationship-table/m-p/1090622#M362840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you say to add the Employee_ID to the Responsibilities table based on the Client_ID?&lt;/P&gt;&lt;P&gt;I can do that, but I don't see how it will help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 16:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationship-table/m-p/1090622#M362840</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-29T16:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship table</title>
      <link>https://community.qlik.com/t5/QlikView/Relationship-table/m-p/1090623#M362841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;That will link your tables like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Client-&amp;gt;Responsibilities on cli_id; Responsibilities-&amp;gt;Employess on employee_id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Clients: cli_id, ...other fields...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Responsibilities: cli_id, relationship_type, &lt;SPAN style="font-size: 13.3333px;"&gt;employee_id, ...other fields...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Employees: employee_id, ...other fields...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 16:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationship-table/m-p/1090623#M362841</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-29T16:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship table</title>
      <link>https://community.qlik.com/t5/QlikView/Relationship-table/m-p/1090624#M362842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that can be done. But I would risk to lose data in case if the responsibility for a given cli_id was not defined in the Responsibilities table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is secondary, in my opinion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The primary problem is that the table Responsibilities has 2 fields (cli_id, related_relationship_id) which point to the same field (cli_id in the Clients table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This case is worsened by the fact that the related_relationship_id can point to 2 different fields: cli_id and employee_id. But this does not generally change the primary problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, I can't create a data model which would allow me to create a table with information like "Client A has a manager called Client B".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 16:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationship-table/m-p/1090624#M362842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-29T16:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship table</title>
      <link>https://community.qlik.com/t5/QlikView/Relationship-table/m-p/1090625#M362843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After all, I decided to join keep some fields from the Clients and Employees table to the Responsibilities table. So, I have a duplication in my data model (Clients -&amp;gt; Responsibilities -&amp;gt; part of Clients). But this approach allows me to achieve my goal of displaying info like "Client A has a manager called Client B".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 07:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationship-table/m-p/1090625#M362843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-31T07:54:33Z</dc:date>
    </item>
  </channel>
</rss>

