<?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 a Definition Query that Shows Only Most Recent Record in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/create-a-definition-query-that-shows-only-most/m-p/1653487#M99231</link>
    <description>&lt;P&gt;The context is visualization.&amp;nbsp; Ultimately, I would publish this table to a web service and use in a WebApp. Users could view the table and only see the most current record when there are multiple tied to a parent feature.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1371"&gt;@JoshuaBixby&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Sep 2025 13:33:00 GMT</pubDate>
    <dc:creator>ChristopherBowering</dc:creator>
    <dc:date>2025-09-26T13:33:00Z</dc:date>
    <item>
      <title>Create a Definition Query that Shows Only Most Recent Record</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-a-definition-query-that-shows-only-most/m-p/1652136#M99096</link>
      <description>&lt;P&gt;I have a table where some inspections records have the same ID (associated with the same parent feature) but have different dates based on when inspections were done.&amp;nbsp; I would like to create a query which only shows the most recent record when multiple records with the same ID exist.&amp;nbsp; There is obviously nothing 'out of the box' for this so I imagine a custom SQL definition query will be necessary.&amp;nbsp; I am not too familiar with scripting outside of basic Arcade.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 15:15:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-a-definition-query-that-shows-only-most/m-p/1652136#M99096</guid>
      <dc:creator>ChristopherBowering</dc:creator>
      <dc:date>2025-09-22T15:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Definition Query that Shows Only Most Recent Record</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-a-definition-query-that-shows-only-most/m-p/1652140#M99097</link>
      <description>&lt;P&gt;I just did this for my inspections relationship!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use this to create database views of your table.&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/select-display-most-recent-record/m-p/1040378#M33394" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-survey123-questions/select-display-most-recent-record/m-p/1040378#M33394&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I set mine up by 'inspection date'. Each hydrant is inspected multiple times but this just returns the most recent inspection per hydrant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 15:50:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-a-definition-query-that-shows-only-most/m-p/1652140#M99097</guid>
      <dc:creator>Laura</dc:creator>
      <dc:date>2025-09-22T15:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Definition Query that Shows Only Most Recent Record</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-a-definition-query-that-shows-only-most/m-p/1652143#M99098</link>
      <description>&lt;P&gt;This should work for definition query, use your fields:&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;created_date IN (SELECT TOP 1 created_date FROM FeatureclassName ORDER BY created_date DESC)&lt;/LI-CODE&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 15:33:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-a-definition-query-that-shows-only-most/m-p/1652143#M99098</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2025-09-22T15:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Definition Query that Shows Only Most Recent Record</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-a-definition-query-that-shows-only-most/m-p/1652145#M99099</link>
      <description>&lt;P&gt;I did try this.&amp;nbsp; However, it only shows 1 singular record as a result.&lt;/P&gt;&lt;P&gt;I want to be able to see the most current record amongst multiple with the same ID.&amp;nbsp; For example, GUID of XYZ only has one record; GUID of YYY has 5 records; GUID of ZZZ has 2 records, etc.&amp;nbsp; It's a 1-to-many table.&amp;nbsp; For each GUID value, I only want to see the most current record.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 15:51:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-a-definition-query-that-shows-only-most/m-p/1652145#M99099</guid>
      <dc:creator>ChristopherBowering</dc:creator>
      <dc:date>2025-09-22T15:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Definition Query that Shows Only Most Recent Record</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-a-definition-query-that-shows-only-most/m-p/1652150#M99100</link>
      <description>&lt;P&gt;I was hoping for a more simplistic approach than creating views or involving the relationship.&amp;nbsp; Maybe there isn't one, however.&amp;nbsp; I don't really care about the parent feature class itself.&amp;nbsp; If you think of it as a basic standalone table - say, with Field X and a Date field - and you just want a definition query to see the most recent record for each Field X value that exists.&amp;nbsp; That's what I'm going for.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 15:50:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-a-definition-query-that-shows-only-most/m-p/1652150#M99100</guid>
      <dc:creator>ChristopherBowering</dc:creator>
      <dc:date>2025-09-22T15:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Definition Query that Shows Only Most Recent Record</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-a-definition-query-that-shows-only-most/m-p/1652155#M99101</link>
      <description>&lt;P&gt;What is the context?&amp;nbsp; Is this for labeling, visualization, analysis, etc...?&amp;nbsp; Knowing the context can open the door to context-specific options.&amp;nbsp; Regarding SQL, it is complicated because SQL support depends on the back-end data source, and the more advanced the SQL the less standard the support becomes.&amp;nbsp; That is, SQL isn't always very portable as a solution.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 16:16:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-a-definition-query-that-shows-only-most/m-p/1652155#M99101</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2025-09-22T16:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Definition Query that Shows Only Most Recent Record</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-a-definition-query-that-shows-only-most/m-p/1653487#M99231</link>
      <description>&lt;P&gt;The context is visualization.&amp;nbsp; Ultimately, I would publish this table to a web service and use in a WebApp. Users could view the table and only see the most current record when there are multiple tied to a parent feature.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1371"&gt;@JoshuaBixby&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2025 13:33:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-a-definition-query-that-shows-only-most/m-p/1653487#M99231</guid>
      <dc:creator>ChristopherBowering</dc:creator>
      <dc:date>2025-09-26T13:33:00Z</dc:date>
    </item>
  </channel>
</rss>

