<?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 SQL expression CURRENT_DATE in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-sql-expression-current-date/m-p/1276647#M67728</link>
    <description>&lt;P&gt;Might try the &lt;A href="https://www.w3schools.com/sql/func_sqlserver_dateadd.asp" target="_self"&gt;DATEADD&lt;/A&gt; function.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;start_time &amp;gt; DATEADD(day,-1,CURRENT_TIMESTAMP)&lt;/LI-CODE&gt;&lt;P&gt;R_&lt;/P&gt;</description>
    <pubDate>Fri, 07 Apr 2023 17:31:19 GMT</pubDate>
    <dc:creator>RhettZufelt</dc:creator>
    <dc:date>2023-04-07T17:31:19Z</dc:date>
    <item>
      <title>Select By Attributes SQL expression CURRENT_DATE</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-sql-expression-current-date/m-p/1276619#M67721</link>
      <description>&lt;P&gt;Hello ArcPro Brains,&lt;/P&gt;&lt;P&gt;I am trying to set up a model builder to Select By Attribute all the records that were started the day before. I am using the SQL window to add the code below&lt;/P&gt;&lt;P&gt;start_time &amp;lt;= (CURRENT_TIMESTAMP - 1)&lt;/P&gt;&lt;P&gt;Unfortunately, I am returning zero records and am not sure why. If I simply write:&lt;/P&gt;&lt;P&gt;start_time &amp;lt;= CURRENT_TIMESTAMP&lt;/P&gt;&lt;P&gt;I return all the records before the present. However, I every time I include the addition or subtraction I return the following "The SQL expression is valid, but no records were returned".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also tried CURRENT_DATE in the same formula with the same results. Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NobleJim_0-1680885846719.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67499i486A5C5CFEDD8841/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NobleJim_0-1680885846719.png" alt="NobleJim_0-1680885846719.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 16:47:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-sql-expression-current-date/m-p/1276619#M67721</guid>
      <dc:creator>Jim</dc:creator>
      <dc:date>2023-04-07T16:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select By Attributes SQL expression CURRENT_DATE</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-sql-expression-current-date/m-p/1276647#M67728</link>
      <description>&lt;P&gt;Might try the &lt;A href="https://www.w3schools.com/sql/func_sqlserver_dateadd.asp" target="_self"&gt;DATEADD&lt;/A&gt; function.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;start_time &amp;gt; DATEADD(day,-1,CURRENT_TIMESTAMP)&lt;/LI-CODE&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 17:31:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes-sql-expression-current-date/m-p/1276647#M67728</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2023-04-07T17:31:19Z</dc:date>
    </item>
  </channel>
</rss>

