<?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: Select By Attributes Max Date in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-max-date/m-p/1589567#M93449</link>
    <description>&lt;P&gt;I am trying to select a max date, and a min date from a selection of points with a timestamp in the last day. The Sys_timestamp is a date being populated with an Arcade insert rule with the Now() function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The points being represented are exit and enter events from Geoevent Server. I need to combine them into one record, probably using Model Builder, so that I can do time elapsed, distance traveled and average speed analysis on the fly or nightly.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2025 17:31:49 GMT</pubDate>
    <dc:creator>AKRRMapGuy</dc:creator>
    <dc:date>2025-02-26T17:31:49Z</dc:date>
    <item>
      <title>Select By Attributes Max Date</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-max-date/m-p/1589247#M93430</link>
      <description>&lt;P&gt;I am trying to select a point from an existing selection using Select Max on a date field. I have attached a screen shot, I can't figure out what I am doing wrong with the syntax.&lt;/P&gt;&lt;P&gt;Thank you in advance for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 01:18:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-max-date/m-p/1589247#M93430</guid>
      <dc:creator>AKRRMapGuy</dc:creator>
      <dc:date>2025-02-26T01:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select By Attributes Max Date</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-max-date/m-p/1589450#M93440</link>
      <description>&lt;P&gt;In general, don't upload a screenshot when you can write out the SQL and error code in text.&amp;nbsp; No matter how busy you are, the people volunteering to read questions and provide replies are just as busy or more.&lt;/P&gt;&lt;P&gt;There are at least a couple issues with the syntax being used.&amp;nbsp; Firstly, the Select by Attributes tool expects a SQL WHERE clause, so your current syntax results in a complete SQL statement of:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;SELECT * FROM SDE.PassengerStartAndStops WHERE SELECT MAX(sys_timestamp) FROM SDE.PassengerStartAndStops&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The statement is invalid, as Pro is already informing you.&lt;/P&gt;&lt;P&gt;The second issue I can't say exactly because I am confused what you are trying to do.&amp;nbsp; sys_timestamp is a DBMS function and not a field in the table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe take a step back and share what exactly you are trying to do, not in code but in words.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 14:18:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-max-date/m-p/1589450#M93440</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2025-02-26T14:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Select By Attributes Max Date</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-max-date/m-p/1589567#M93449</link>
      <description>&lt;P&gt;I am trying to select a max date, and a min date from a selection of points with a timestamp in the last day. The Sys_timestamp is a date being populated with an Arcade insert rule with the Now() function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The points being represented are exit and enter events from Geoevent Server. I need to combine them into one record, probably using Model Builder, so that I can do time elapsed, distance traveled and average speed analysis on the fly or nightly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 17:31:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-max-date/m-p/1589567#M93449</guid>
      <dc:creator>AKRRMapGuy</dc:creator>
      <dc:date>2025-02-26T17:31:49Z</dc:date>
    </item>
  </channel>
</rss>

