<?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 One-to-first join — Intuitive way to filter related table prior to joining in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/one-to-first-join-intuitive-way-to-filter-related/idi-p/1592282</link>
    <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 3.3.5; File Geodatabase&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I have a &lt;EM&gt;roads&lt;/EM&gt; FC and an &lt;EM&gt;events&lt;/EM&gt; standalone table. The relationship of the underlying &lt;U&gt;data&lt;/U&gt; is one-to-many (no relationship class). One road to many events via a common ROAD_ID field.&lt;/P&gt;&lt;P&gt;I want to make a one-to-first join from roads to events. But I only want to join to events where the EVENT_STATUS='ACTIVE'.&lt;/P&gt;&lt;P&gt;Creating an&amp;nbsp;EVENT_STATUS='ACTIVE' definition query on events wouldn't be suitable because once the join is created, the filter will be applied by Pro after the one-to-first join is performed, not before. I need the filter to be applied before the join is performed, so that only ACTIVE events are joined.&lt;/P&gt;&lt;P&gt;I don't want to make a copy of the filtered data; that's messy and causes confusion. And I don't want to use Make Query Table to pre-filter the data; the resulting filter isn't visible anywhere in Pro, so it isn't modifiable and confuses users (also, joining to query tables is slow). I would prefer not to create a database view each time I do tabular analysis like this in Pro; that would be cumbersome.&lt;/P&gt;&lt;P&gt;I want to be able to edit the roads features/fields in the attribute table, as well as see fields from the events table, so a join is the only suitable option.&lt;/P&gt;&lt;P&gt;It would help to have a more intuitive way to filter the related table prior to joining for ad-hoc, dynamic analysis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 08 Mar 2025 18:48:27 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2025-03-08T18:48:27Z</dc:date>
    <item>
      <title>One-to-first join — Intuitive way to filter related table prior to joining</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/one-to-first-join-intuitive-way-to-filter-related/idi-p/1592282</link>
      <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 3.3.5; File Geodatabase&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I have a &lt;EM&gt;roads&lt;/EM&gt; FC and an &lt;EM&gt;events&lt;/EM&gt; standalone table. The relationship of the underlying &lt;U&gt;data&lt;/U&gt; is one-to-many (no relationship class). One road to many events via a common ROAD_ID field.&lt;/P&gt;&lt;P&gt;I want to make a one-to-first join from roads to events. But I only want to join to events where the EVENT_STATUS='ACTIVE'.&lt;/P&gt;&lt;P&gt;Creating an&amp;nbsp;EVENT_STATUS='ACTIVE' definition query on events wouldn't be suitable because once the join is created, the filter will be applied by Pro after the one-to-first join is performed, not before. I need the filter to be applied before the join is performed, so that only ACTIVE events are joined.&lt;/P&gt;&lt;P&gt;I don't want to make a copy of the filtered data; that's messy and causes confusion. And I don't want to use Make Query Table to pre-filter the data; the resulting filter isn't visible anywhere in Pro, so it isn't modifiable and confuses users (also, joining to query tables is slow). I would prefer not to create a database view each time I do tabular analysis like this in Pro; that would be cumbersome.&lt;/P&gt;&lt;P&gt;I want to be able to edit the roads features/fields in the attribute table, as well as see fields from the events table, so a join is the only suitable option.&lt;/P&gt;&lt;P&gt;It would help to have a more intuitive way to filter the related table prior to joining for ad-hoc, dynamic analysis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Mar 2025 18:48:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/one-to-first-join-intuitive-way-to-filter-related/idi-p/1592282</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2025-03-08T18:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: One-to-first join — Intuitive way to filter related table prior to joining</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/one-to-first-join-intuitive-way-to-filter-related/idc-p/1592323#M34041</link>
      <description>&lt;P&gt;- Move the data from the File Geodatabase to an Enterprise Geodatabase (Oracle, SQL Server, PostgreSQL).&lt;/P&gt;&lt;P&gt;- Create a Database View using a SQL Statement to return only the first matching row.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/35255271/sql-how-to-limit-a-join-on-the-first-found-row" target="_blank"&gt;https://stackoverflow.com/questions/35255271/sql-how-to-limit-a-join-on-the-first-found-row&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.oracle.com/ords/apexds/post/returning-the-first-record-of-an-inner-join-3311" target="_blank"&gt;https://forums.oracle.com/ords/apexds/post/returning-the-first-record-of-an-inner-join-3311&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dba.stackexchange.com/questions/6368/how-to-select-the-first-row-of-each-group" target="_blank"&gt;https://dba.stackexchange.com/questions/6368/how-to-select-the-first-row-of-each-group&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- File Geodatabases do not support advanced SQL statements, hence it is necessary to load the data into an Enterprise Geodatabase to take advantage of the RDBMS advanced SQL features.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 16:56:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/one-to-first-join-intuitive-way-to-filter-related/idc-p/1592323#M34041</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2025-03-05T16:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: One-to-first join — Intuitive way to filter related table prior to joining</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/one-to-first-join-intuitive-way-to-filter-related/idc-p/1592325#M34042</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7880"&gt;@MarceloMarques&lt;/a&gt;&amp;nbsp;Yes, I've tried this in our Oracle EGDB. The problem is the attribute table is unreliable when joining to a database view or query layer. I think you and I have discussed this in other posts. The attribute table table becomes slow and the joined fields display nulls sometimes. Unfortunately, I have lost faith in Pro's ability to join to SQL queries. Submitting Esri Support cases has not been fruitful.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 17:03:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/one-to-first-join-intuitive-way-to-filter-related/idc-p/1592325#M34042</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2025-03-05T17:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: One-to-first join — Intuitive way to filter related table prior to joining</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/one-to-first-join-intuitive-way-to-filter-related/idc-p/1592340#M34043</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;- change "null" values for a value like "zero" in the view SQL statement. If the view is still slow to query, then perform the tuning by analyzing the execution plan when you run a select statement on the view, by seeing the execution plan in detail then you can identify what causes the view to be slow. If the view is slow to query because the dataset is very large, then use a "materialized view", you will need to schedule the "materialized view" refresh according to your needs to refresh the data, you can accomplish this automatically via an oracle dbms_scheduler job that calls the SQL commands to refresh the "materialized view", oracle documentation has examples.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 17:15:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/one-to-first-join-intuitive-way-to-filter-related/idc-p/1592340#M34043</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2025-03-05T17:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: One-to-first join — Intuitive way to filter related table prior to joining</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/one-to-first-join-intuitive-way-to-filter-related/idc-p/1595941#M34153</link>
      <description>&lt;P&gt;The way one-to-first joins work is: Pro grabs the related record with the &lt;STRONG&gt;lowest OBJECTID&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;So, if a road has a couple of related events, but the event with the lowest OBJECTID is an&amp;nbsp;&lt;SPAN&gt;EVENT_STATUS='&lt;STRONG&gt;IN&lt;/STRONG&gt;ACTIVE'&amp;nbsp;&lt;/SPAN&gt;event, then that event will be joined, not the other &lt;SPAN&gt;EVENT_STATUS='ACTIVE'&lt;/SPAN&gt;&amp;nbsp;event with the larger OBJECTID.&lt;/P&gt;&lt;P&gt;If I had an&amp;nbsp;&lt;SPAN&gt;EVENT_STATUS='ACTIVE' definition query on events prior to creating the join, Pro will automatically apply that definition query to the joined roads table when I create the join. In the example above, the definition query would omit the road entirely because the joined event is INACTIVE. So, that’s what I mean when I say the definition query is performed after the join is performed. I’m looking for a way to filter the table prior to the join being performed so that only ACTIVE events are joined.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don’t want to do a one-to-many join because I want a unique list of roads. If there were a road with multiple ACTIVE events, then that would result in duplicate roads in the attribute table if the join were one-to-many.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Related:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/add-join-indicate-that-a-definition-query-on-join/idi-p/1385290/highlight/true" target="_self"&gt;Add Join — Indicate that a definition query on join table will effectively result in an inner join&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/add-join-create-independent-definition-query-on/idi-p/1385518" target="_self"&gt;Add Join — Create independent definition query on join table (pre-filter)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/one-to-first-join-control-what-related-record-gets/idi-p/1237557" target="_self"&gt;One-to-first join — Control what related record gets used&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 17 Mar 2025 05:14:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/one-to-first-join-intuitive-way-to-filter-related/idc-p/1595941#M34153</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2025-03-17T05:14:16Z</dc:date>
    </item>
  </channel>
</rss>

