<?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: Create Relationship Class keys in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/create-relationship-class-keys/m-p/743653#M57492</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Molly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These additional keys are used for the intermediate table in a many to many relationship. If you are using one to many or one to one, they are&amp;nbsp;not needed.&amp;nbsp;See:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/help/data/relationships/relationship-class-properties.htm#GUID-8FB8CDF8-FF38-4762-8A61-E427C0AAA81F"&gt;https://pro.arcgis.com/en/pro-app/help/data/relationships/relationship-class-properties.htm#GUID-8FB8CDF8-FF38-4762-8A61-E427C0AAA81F&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Colin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Apr 2019 15:53:02 GMT</pubDate>
    <dc:creator>ColinLawrence</dc:creator>
    <dc:date>2019-04-10T15:53:02Z</dc:date>
    <item>
      <title>Create Relationship Class keys</title>
      <link>https://community.esri.com/t5/python-questions/create-relationship-class-keys/m-p/743652#M57491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My code is working, but for my own edification I'm trying to understand the documentation because there's four options for adding keys and I don't really get the difference between the two origin key options and the two destination key options.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/create-relationship-class.htm"&gt;https://pro.arcgis.com/en/pro-app/tool-reference/data-management/create-relationship-class.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now my code uses the origin_primary_key and the destination_primary_key. I'm wondering why there is an option for an origin_foreign_key and destination one. The descriptions don't make much sense to me, for instance the origin descriptions are this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PK:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The field in the&amp;nbsp;origin table, typically the OID field, that links to the Origin Foreign Key field in the relationship class table.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FK:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The field in the relationship class table that links it to the Origin Primary Key field in the origin table.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;What is a "relationship class table"?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, I see that both the destination keys are optional. Don't you need to have a key in the destination table to relate it the origin table? How can that be an optional parameter? I played around with the code and only used the required options (origin PK and origin FK) and it didn't seem to make a difference from when I used the origin PK and destination PK. Just curious how these are all different?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2019 15:13:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-relationship-class-keys/m-p/743652#M57491</guid>
      <dc:creator>MKF62</dc:creator>
      <dc:date>2019-04-10T15:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create Relationship Class keys</title>
      <link>https://community.esri.com/t5/python-questions/create-relationship-class-keys/m-p/743653#M57492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Molly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These additional keys are used for the intermediate table in a many to many relationship. If you are using one to many or one to one, they are&amp;nbsp;not needed.&amp;nbsp;See:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/help/data/relationships/relationship-class-properties.htm#GUID-8FB8CDF8-FF38-4762-8A61-E427C0AAA81F"&gt;https://pro.arcgis.com/en/pro-app/help/data/relationships/relationship-class-properties.htm#GUID-8FB8CDF8-FF38-4762-8A61-E427C0AAA81F&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Colin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2019 15:53:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-relationship-class-keys/m-p/743653#M57492</guid>
      <dc:creator>ColinLawrence</dc:creator>
      <dc:date>2019-04-10T15:53:02Z</dc:date>
    </item>
  </channel>
</rss>

