<?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: Joining with 1:M relationship in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/joining-with-1-m-relationship/m-p/1091027#M43524</link>
    <description>&lt;P&gt;Hello Vincent&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok, I see the issue now. Object ids are unique in the underlying enterprise geodatabase artifact but not in the view. Depending on your relational database management system (Microsoft SQL, Oracle etc), you could try, for example, Create View AS &amp;lt;viewname&amp;gt;, Select ROWNUMBER() As ID,&amp;nbsp; or NEWID() As 'id' ?&amp;nbsp; This adds an artificial identifier for row number in the view representation and does not represent a unique identifier for rows from the underlying source tables. My understanding is that this kind of identifier cannot be used as a primary key or be in a foreign key relationship between this View and other artifacts. Worth a try.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that doesn't work, then the only other alternative is to create the desired artifact before the linear regression analysis can occur. Use Add Join geoprocessing tool on two layers and then use the Copy Features or Feature Class to Feature Class tool to export into a new artifact. The new artifact would then have unique object ids for each row. Use a Model (Model Builder) to script this workflow to run manually as required or schedule it to run at a time and frequency that suits.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/add-join.htm" target="_blank"&gt;Add Join (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ed&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 21 Aug 2021 06:53:25 GMT</pubDate>
    <dc:creator>Eduardo_Fernandez_EsriAu</dc:creator>
    <dc:date>2021-08-21T06:53:25Z</dc:date>
    <item>
      <title>Joining with 1:M relationship</title>
      <link>https://community.esri.com/t5/data-management-questions/joining-with-1-m-relationship/m-p/1086075#M43487</link>
      <description>&lt;DIV class="gmail_default"&gt;HI,&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="gmail_default"&gt;Kindly help me.&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="gmail_default"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="gmail_default"&gt;I am trying to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#0000ff"&gt;join tables with a one to many relationship.&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="gmail_default"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="gmail_default"&gt;&lt;STRONG&gt;&lt;FONT color="#990000"&gt;I need to symbolise using the data in the many relationships (stand alone table) but it can't.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;How best can I navigate that.&amp;nbsp;Have tried and have failed.&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="gmail_default"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="gmail_default"&gt;When I join, I lose data in the output table and my results end up not being significant.&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="gmail_default"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="gmail_default"&gt;I will be so grateful for your kind help.&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Aug 2021 08:51:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/joining-with-1-m-relationship/m-p/1086075#M43487</guid>
      <dc:creator>VincentOkotel</dc:creator>
      <dc:date>2021-08-05T08:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Joining with 1:M relationship</title>
      <link>https://community.esri.com/t5/data-management-questions/joining-with-1-m-relationship/m-p/1089181#M43504</link>
      <description>&lt;P&gt;Hi Vincent&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume you have a feature class ( 1 feature) to join to a table ( Many rows) in an enterprise geodatabase? You can use a database view with a right join to result in 1 feature (overlapping) linked to each row from the table.&lt;/P&gt;&lt;P&gt;If its between two tables, you could also try&amp;nbsp;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/tables/joining-attributes-in-one-table-to-another.htm" target="_blank"&gt;Joining attributes in one table to another—ArcMap | Documentation (arcgis.com).&amp;nbsp;&lt;/A&gt; This page might also help&amp;nbsp;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/tables/essentials-of-joining-tables.htm" target="_blank"&gt;Essentials of joining tables—ArcMap | Documentation (arcgis.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regard Ed&lt;/P&gt;</description>
      <pubDate>Sun, 15 Aug 2021 23:54:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/joining-with-1-m-relationship/m-p/1089181#M43504</guid>
      <dc:creator>EduardoFernandez1</dc:creator>
      <dc:date>2021-08-15T23:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Joining with 1:M relationship</title>
      <link>https://community.esri.com/t5/data-management-questions/joining-with-1-m-relationship/m-p/1090864#M43523</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you Edwardo Fernandez for your response.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Yeah, when i use the right join it works for symbology.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;However I cant do further analysis like analysis like logistic regression because the IDS are no longer unique.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;This is the error message it brings&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;Generalized Linear Regression (GLR)&lt;BR /&gt;=====================&lt;BR /&gt;=====================&lt;BR /&gt;&lt;STRONG&gt;(Error) Messages&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Start Time: Friday, August 20, 2021 8:21:21 PM&lt;BR /&gt;WARNING 001605: Distances for Geographic Coordinates (degrees, minutes, seconds) are analyzed using Chordal Distances in meters.&lt;BR /&gt;ERROR 000644: Duplicate IDs found in OBJECTID.&lt;BR /&gt;ERROR 000643: Invalid unique ID field.&lt;BR /&gt;Failed to execute (GeneralizedLinearRegression).&lt;BR /&gt;Failed at Friday, August 20, 2021 8:21:38 PM (Elapsed Time: 16.86 seconds)&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;How can I then do 1:M join while maintaining unique object IDS&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 20 Aug 2021 17:25:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/joining-with-1-m-relationship/m-p/1090864#M43523</guid>
      <dc:creator>Vincent_Okotel</dc:creator>
      <dc:date>2021-08-20T17:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Joining with 1:M relationship</title>
      <link>https://community.esri.com/t5/data-management-questions/joining-with-1-m-relationship/m-p/1091027#M43524</link>
      <description>&lt;P&gt;Hello Vincent&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok, I see the issue now. Object ids are unique in the underlying enterprise geodatabase artifact but not in the view. Depending on your relational database management system (Microsoft SQL, Oracle etc), you could try, for example, Create View AS &amp;lt;viewname&amp;gt;, Select ROWNUMBER() As ID,&amp;nbsp; or NEWID() As 'id' ?&amp;nbsp; This adds an artificial identifier for row number in the view representation and does not represent a unique identifier for rows from the underlying source tables. My understanding is that this kind of identifier cannot be used as a primary key or be in a foreign key relationship between this View and other artifacts. Worth a try.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that doesn't work, then the only other alternative is to create the desired artifact before the linear regression analysis can occur. Use Add Join geoprocessing tool on two layers and then use the Copy Features or Feature Class to Feature Class tool to export into a new artifact. The new artifact would then have unique object ids for each row. Use a Model (Model Builder) to script this workflow to run manually as required or schedule it to run at a time and frequency that suits.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/add-join.htm" target="_blank"&gt;Add Join (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ed&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Aug 2021 06:53:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/joining-with-1-m-relationship/m-p/1091027#M43524</guid>
      <dc:creator>Eduardo_Fernandez_EsriAu</dc:creator>
      <dc:date>2021-08-21T06:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Joining with 1:M relationship</title>
      <link>https://community.esri.com/t5/data-management-questions/joining-with-1-m-relationship/m-p/1091606#M43527</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/468899" target="_self"&gt;&lt;SPAN class=""&gt;EduardoFernandez&lt;/SPAN&gt;&lt;/A&gt;. I used copy features and it worked out for me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 07:08:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/joining-with-1-m-relationship/m-p/1091606#M43527</guid>
      <dc:creator>Vincent_Okotel</dc:creator>
      <dc:date>2021-08-24T07:08:52Z</dc:date>
    </item>
  </channel>
</rss>

