<?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 Structure many to many for relationship in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/structure-many-to-many-for-relationship/m-p/1017126#M6936</link>
    <description>&lt;P&gt;I am not sure where to post this question. So, please feel free to suggest a move if necessary.&lt;/P&gt;&lt;P&gt;The Environment: We are on ArcMap 10.6.1 with a versioned Oracle SDE&lt;/P&gt;&lt;P&gt;The problem: I have a polyline feature class that we have been asked to relate to a stand-alone invoice table. Each table has a feeder ID field with many records for each feeder id. So, each feature should be joined to all others with the same feeder ID. Also, the stand-alone table is read-only, as it is updated nightly by a batch job.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried a many to many relationships with the Feeder IDs as keys so each row in the relationship table looks something like this:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;RID&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;POLYLINE_FEEDERID&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;INVOICE_FEEDERID&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;SS1&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;SS1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;2&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;SS2&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;SS2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;This works fine until one deletes one of the polylines. Let's say you delete one with a feeder ID of SS2. Then the system deletes the row RDI = 2, breaking the relationship between all other records with a feeder of SS2!&lt;/P&gt;&lt;P&gt;It would seem that my only option would be to relate each feature within a feeder ID to each invoice using global ID and invoice IDs as the keys. That way each time you delete a feature the system would only break the relationship for the deleted feature. Is there a better way to do this? It feels like this should be not quite this complex.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thansk!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2021 00:48:36 GMT</pubDate>
    <dc:creator>forestknutsen1</dc:creator>
    <dc:date>2021-01-15T00:48:36Z</dc:date>
    <item>
      <title>Structure many to many for relationship</title>
      <link>https://community.esri.com/t5/geodatabase-questions/structure-many-to-many-for-relationship/m-p/1017126#M6936</link>
      <description>&lt;P&gt;I am not sure where to post this question. So, please feel free to suggest a move if necessary.&lt;/P&gt;&lt;P&gt;The Environment: We are on ArcMap 10.6.1 with a versioned Oracle SDE&lt;/P&gt;&lt;P&gt;The problem: I have a polyline feature class that we have been asked to relate to a stand-alone invoice table. Each table has a feeder ID field with many records for each feeder id. So, each feature should be joined to all others with the same feeder ID. Also, the stand-alone table is read-only, as it is updated nightly by a batch job.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried a many to many relationships with the Feeder IDs as keys so each row in the relationship table looks something like this:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;RID&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;POLYLINE_FEEDERID&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;INVOICE_FEEDERID&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;SS1&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;SS1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;2&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;SS2&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;SS2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;This works fine until one deletes one of the polylines. Let's say you delete one with a feeder ID of SS2. Then the system deletes the row RDI = 2, breaking the relationship between all other records with a feeder of SS2!&lt;/P&gt;&lt;P&gt;It would seem that my only option would be to relate each feature within a feeder ID to each invoice using global ID and invoice IDs as the keys. That way each time you delete a feature the system would only break the relationship for the deleted feature. Is there a better way to do this? It feels like this should be not quite this complex.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thansk!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 00:48:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/structure-many-to-many-for-relationship/m-p/1017126#M6936</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2021-01-15T00:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Structure many to many for relationship</title>
      <link>https://community.esri.com/t5/geodatabase-questions/structure-many-to-many-for-relationship/m-p/1018240#M6938</link>
      <description>&lt;P&gt;Hi! It would be worthwhile reading this doc and seeing if 'relate' might be more relevant to what youre after.&lt;/P&gt;&lt;P&gt;Heres some esri documentation on the differences, it may or may not be helpful for your case&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/tables/joins-and-relates.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/tables/joins-and-relates.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 05:19:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/structure-many-to-many-for-relationship/m-p/1018240#M6938</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-20T05:19:03Z</dc:date>
    </item>
  </channel>
</rss>

