<?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>idea Add Join — Pseudo-ObjectID (row number) as unique ID field for 1:M join in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/add-join-pseudo-objectid-row-number-as-unique-id/idi-p/1494563</link>
    <description>&lt;P&gt;Regarding &lt;A href="https://support.esri.com/en-us/bug/the-select-by-attributes-tool-does-not-select-only-reco-bug-000154798" target="_self"&gt;BUG-000154798&lt;/A&gt;: The 'Select By Attributes' tool does not select only records with specified field values added through a one-to-many join but instead selects all records with duplicate ObjectIDs. (Status:&amp;nbsp; Known Limit)&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-on-joined-data-for-rows-that/m-p/1473009/highlight/true#M83307" target="_self"&gt;Select By Attributes on joined data — For rows that are 1:M, all rows in the join table get selected, despite selection criteria&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/is-arcgis-pro-the-right-tool-for-tabular-join/m-p/1416363/highlight/true#M82488" target="_self"&gt;Is ArcGIS Pro the right tool for tabular/join-based geodatabase analysis?&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;Could the various issues with 1:M (one-to-many) joins in Pro be solved by having a&amp;nbsp;pseudo-ObjectID (row number) field as a unique ID?&lt;/P&gt;&lt;P&gt;For example, Oracle's ROWNUM pseudo-column works fine for query layers as the unique ID. Could a similar row-number-based mechanism work for Add Join in the attribute table, too?&lt;/P&gt;&lt;PRE&gt;select
    &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;cast(rownum as int) as pseudo_objectid,&lt;/STRONG&gt;&lt;/FONT&gt;
    lc.*,&lt;BR /&gt;    pf.*
from
    lc_events lc &lt;FONT color="#999999"&gt;--one&lt;/FONT&gt;
left join
    lc_events_project_finances pf &lt;FONT color="#999999"&gt;--many&lt;/FONT&gt;
    on lc.event_id = pf.event_id&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1718737203312.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/107342i541B483CDAB6A10B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_0-1718737203312.png" alt="Bud_0-1718737203312.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Edit: I think this approach would work for M:M (many-to-many) joins too.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/disallow-1-m-join-layers-as-gp-inputs-instead-of/idi-p/1477009/highlight/true" target="_self"&gt;Disallow 1:M join layers as GP inputs instead of producing unexpected results&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jul 2024 04:39:17 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2024-07-15T04:39:17Z</dc:date>
    <item>
      <title>Add Join — Pseudo-ObjectID (row number) as unique ID field for 1:M join</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-join-pseudo-objectid-row-number-as-unique-id/idi-p/1494563</link>
      <description>&lt;P&gt;Regarding &lt;A href="https://support.esri.com/en-us/bug/the-select-by-attributes-tool-does-not-select-only-reco-bug-000154798" target="_self"&gt;BUG-000154798&lt;/A&gt;: The 'Select By Attributes' tool does not select only records with specified field values added through a one-to-many join but instead selects all records with duplicate ObjectIDs. (Status:&amp;nbsp; Known Limit)&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-on-joined-data-for-rows-that/m-p/1473009/highlight/true#M83307" target="_self"&gt;Select By Attributes on joined data — For rows that are 1:M, all rows in the join table get selected, despite selection criteria&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/is-arcgis-pro-the-right-tool-for-tabular-join/m-p/1416363/highlight/true#M82488" target="_self"&gt;Is ArcGIS Pro the right tool for tabular/join-based geodatabase analysis?&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;Could the various issues with 1:M (one-to-many) joins in Pro be solved by having a&amp;nbsp;pseudo-ObjectID (row number) field as a unique ID?&lt;/P&gt;&lt;P&gt;For example, Oracle's ROWNUM pseudo-column works fine for query layers as the unique ID. Could a similar row-number-based mechanism work for Add Join in the attribute table, too?&lt;/P&gt;&lt;PRE&gt;select
    &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;cast(rownum as int) as pseudo_objectid,&lt;/STRONG&gt;&lt;/FONT&gt;
    lc.*,&lt;BR /&gt;    pf.*
from
    lc_events lc &lt;FONT color="#999999"&gt;--one&lt;/FONT&gt;
left join
    lc_events_project_finances pf &lt;FONT color="#999999"&gt;--many&lt;/FONT&gt;
    on lc.event_id = pf.event_id&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1718737203312.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/107342i541B483CDAB6A10B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_0-1718737203312.png" alt="Bud_0-1718737203312.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Edit: I think this approach would work for M:M (many-to-many) joins too.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/disallow-1-m-join-layers-as-gp-inputs-instead-of/idi-p/1477009/highlight/true" target="_self"&gt;Disallow 1:M join layers as GP inputs instead of producing unexpected results&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 04:39:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-join-pseudo-objectid-row-number-as-unique-id/idi-p/1494563</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-07-15T04:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Add Join — Pseudo-ObjectID (row number) as unique ID field for 1:M join</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-join-pseudo-objectid-row-number-as-unique-id/idc-p/1494571#M30745</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;&amp;nbsp;Yes, internally selections work off of objectId's, stored in the layer.&amp;nbsp; When there is a 1:many join, selections will select duplicates.&amp;nbsp; For the Add Join tool, we would require additional development by the Geodatabase team.&amp;nbsp;&lt;BR /&gt;The team does have an issue for this:&lt;BR /&gt;&amp;nbsp;Title: "Relquerytable to support a unique generated field"&lt;BR /&gt;Note1: this is a tough task when implementing it across all data sources, so it will require lots of considerations.&lt;BR /&gt;Note2: this will also make analysis tools work correctly on joined layers.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 19:25:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-join-pseudo-objectid-row-number-as-unique-id/idc-p/1494571#M30745</guid>
      <dc:creator>JonathanNeal</dc:creator>
      <dc:date>2024-06-18T19:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Add Join — Pseudo-ObjectID (row number) as unique ID field for 1:M join</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-join-pseudo-objectid-row-number-as-unique-id/idc-p/1494711#M30760</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/342593"&gt;@JonathanNeal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you generate the row number field values using SQL or using ArcObjects? If SQL, I wonder if you would need the FGDB SQL folks to add row number functionality to FGDB SQL:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/row-number-function-in-fgdb-sql/idi-p/1370922" target="_self"&gt;ROW_NUMBER function in FGDB SQL&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 23:33:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-join-pseudo-objectid-row-number-as-unique-id/idc-p/1494711#M30760</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-06-18T23:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add Join — Pseudo-ObjectID (row number) as unique ID field for 1:M join</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-join-pseudo-objectid-row-number-as-unique-id/idc-p/1535457#M31999</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/make-query-table.htm" target="_self" rel="nofollow noopener noreferrer"&gt;Make Query Table (Data Management)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can provide a key field option and key fields list. This information defines how rows are uniquely identified and is used to add a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;dynamically generated Object ID field&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to the data. Without an Object ID field, selections will not be supported.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/how-to-join-using-make-query-table/m-p/1392162" target="_self"&gt;How to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;join&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;using Make Query Table?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1725544298033.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114349i4AE3F5EAA0FCEFE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1725544298033.png" alt="Bud_0-1725544298033.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Limitation: The data in a Make Query Table can't be edited.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 13:52:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-join-pseudo-objectid-row-number-as-unique-id/idc-p/1535457#M31999</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-09-05T13:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Add Join — Pseudo-ObjectID (row number) as unique ID field for 1:M join</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-join-pseudo-objectid-row-number-as-unique-id/idc-p/1535518#M32002</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/342593"&gt;@JonathanNeal&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/74962"&gt;@JillScholz_esri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Make Query Table has functionality that lets us generate an OBJECTID field on the fly in feature layers and table views. The OBJECTID values are truly unique, even if the relationship of the "join" is one-to-many.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Make Query Table (Data Management) &amp;gt; &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/make-query-table.htm#:~:text=View%3B%20Raster%20Layer-,Key%20Field%20Options,-Specifies%20how%20an" target="_self"&gt;Key Field Options parameter&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Generate a key field&lt;/STRONG&gt;—If no key fields have been specified, an Object ID field that &lt;STRONG&gt;uniquely identifies each row&lt;/STRONG&gt; in the output table will be generated.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Could the same mechanism be used in the attribute table of a proper one-to-many join via Add Join?&lt;/P&gt;&lt;P&gt;Would that help solve the 1:M join selection issue (duplicate OBJECTIDs)?&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-on-joined-data-for-rows-that/td-p/1390893/highlight/true" target="_self"&gt;BUG-000154798: The 'Select By Attributes' tool does not select only records with specified field values added through a one-to-many join but instead selects all records with duplicate ObjectIDs.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1725549124595.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114358i6E4563EE7274CDC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1725549124595.png" alt="Bud_0-1725549124595.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 15:14:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-join-pseudo-objectid-row-number-as-unique-id/idc-p/1535518#M32002</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-09-05T15:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Add Join — Pseudo-ObjectID (row number) as unique ID field for 1:M join</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-join-pseudo-objectid-row-number-as-unique-id/idc-p/1535585#M32003</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;&amp;nbsp;If you are after certain selected records in the related table, consider this approach.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/add-relate.htm" target="_self"&gt;Add Relate tool&lt;/A&gt; (or make a relationship class if you want it permanent)&lt;/LI&gt;&lt;LI&gt;Enable the layer property &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/tables/automatically-select-related-records.htm" target="_blank"&gt;Automatically select related records—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Do the selection&lt;/LI&gt;&lt;LI&gt;On the related table, You can highlight records you wish to process.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 05 Sep 2024 17:11:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-join-pseudo-objectid-row-number-as-unique-id/idc-p/1535585#M32003</guid>
      <dc:creator>JonathanNeal</dc:creator>
      <dc:date>2024-09-05T17:11:33Z</dc:date>
    </item>
  </channel>
</rss>

