<?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: Definition Query Date Database Table Julianday in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/definition-query-date-database-table-julianday/m-p/1558586#M90135</link>
    <description>&lt;P&gt;"date" seems to be a keyword in SQL? Does that mean, you can't use a definition query on tables/fields named "date"? That would be a major problem, as a "date" field seems to be like an everyday thing in databases/tables. Isn't there any command to ignore the "date" keyword in such cases?&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2024 14:02:05 GMT</pubDate>
    <dc:creator>MoritzSchilling</dc:creator>
    <dc:date>2024-11-14T14:02:05Z</dc:date>
    <item>
      <title>Definition Query Date Database Table Julianday</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/definition-query-date-database-table-julianday/m-p/1526349#M87386</link>
      <description>&lt;P&gt;I want to use a definition query for a database table (GPKG) on a date field. I got dates from 2019 to - more or less - present day and the definition qeury should result in all data after a certain date.&lt;/P&gt;&lt;P&gt;When I use the "definition query builder",&lt;BR /&gt;"Where date is less than 14.06.2023" (german date order) and switch to SQL I can see&lt;/P&gt;&lt;P&gt;main.%inspection.date &amp;lt; JULIANDAY('2023-06-14')&lt;/P&gt;&lt;P&gt;but I get an error message:&lt;/P&gt;&lt;P&gt;"There was an error with the expression."&lt;/P&gt;&lt;P&gt;What's wrong? How do I use a denition query on a date correctly?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 10:50:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/definition-query-date-database-table-julianday/m-p/1526349#M87386</guid>
      <dc:creator>MoritzSchilling</dc:creator>
      <dc:date>2024-08-23T10:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query Date Database Table Julianday</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/definition-query-date-database-table-julianday/m-p/1526435#M87396</link>
      <description>&lt;P&gt;Not sure if you can see the option, but when I use def queries related to date fields it breaks up something like:&lt;/P&gt;&lt;P&gt;"Where [Date Field] is before [Selected Date]"&amp;nbsp;&lt;/P&gt;&lt;P&gt;switching to SQL it looks like:&lt;/P&gt;&lt;P&gt;DATEFIELD &amp;lt; timestamp '2024-07-23 13:02:00'&amp;nbsp; (for this example my date field had a timestamp)&lt;/P&gt;&lt;P&gt;Maybe this will help more too: &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/tables/date-fields.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/tables/date-fields.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 14:20:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/definition-query-date-database-table-julianday/m-p/1526435#M87396</guid>
      <dc:creator>AMoody</dc:creator>
      <dc:date>2024-08-23T14:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query Date Database Table Julianday</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/definition-query-date-database-table-julianday/m-p/1526944#M87447</link>
      <description>&lt;P&gt;Thanks for your reply, but I can't get it to work. I attached three screenshots to illustrate my problem. I just tried the definition query in QGIS on the same GeoPackage table and it works with "date" &amp;gt; '2023-12-30'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 06:07:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/definition-query-date-database-table-julianday/m-p/1526944#M87447</guid>
      <dc:creator>MoritzSchilling</dc:creator>
      <dc:date>2024-08-26T06:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query Date Database Table Julianday</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/definition-query-date-database-table-julianday/m-p/1527223#M87479</link>
      <description>&lt;P&gt;Does your field name have a period in it?&amp;nbsp; For example, it looks like the field name is "inspection.date", which will definitely cause issues since that would make for &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/010001-020000/tool-errors-and-warnings-10076-10100-010085.htm#:~:text=Field%20names%20should%20only%20contain,are%20typically%20considered%20reserved%20keywords." target="_blank" rel="noopener"&gt;010085: &amp;lt;value&amp;gt; is an invalid field name.—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;BLOCKQUOTE&gt;Field names should only contain characters a–z, 0–9, and underscores.&lt;P&gt;Do not use spaces, hyphens, parentheses, brackets, and other special characters, such as $, %, and #.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;BLOCKQUOTE&gt;Avoid using field names that contain words that are typically considered reserved keywords. These are typically&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;data&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;day&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;month&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;table&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;text&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;user&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;when&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;where&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;year&lt;/SPAN&gt;, and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;zone&lt;/SPAN&gt;.&lt;P&gt;Note that each underlying DBMS can have its own set of reserved keywords.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 15:21:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/definition-query-date-database-table-julianday/m-p/1527223#M87479</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2024-08-26T15:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query Date Database Table Julianday</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/definition-query-date-database-table-julianday/m-p/1527619#M87500</link>
      <description>&lt;P&gt;No, actually the field name is just "date". The table name is "inspection" and it is named "main.inspection" by ArcGIS Pro (in QGIS I see only "inspection").&lt;/P&gt;&lt;P&gt;addition:&lt;/P&gt;&lt;P&gt;You can see "main.cities" as an example on this page:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/databases/work-with-sqlite-databases-in-arcgis-pro.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/databases/work-with-sqlite-databases-in-arcgis-pro.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Seems to be the way ArcGIS Pro names tables of SQLite databases or GeoPackages.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 05:31:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/definition-query-date-database-table-julianday/m-p/1527619#M87500</guid>
      <dc:creator>MoritzSchilling</dc:creator>
      <dc:date>2024-08-27T05:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query Date Database Table Julianday</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/definition-query-date-database-table-julianday/m-p/1558586#M90135</link>
      <description>&lt;P&gt;"date" seems to be a keyword in SQL? Does that mean, you can't use a definition query on tables/fields named "date"? That would be a major problem, as a "date" field seems to be like an everyday thing in databases/tables. Isn't there any command to ignore the "date" keyword in such cases?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 14:02:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/definition-query-date-database-table-julianday/m-p/1558586#M90135</guid>
      <dc:creator>MoritzSchilling</dc:creator>
      <dc:date>2024-11-14T14:02:05Z</dc:date>
    </item>
  </channel>
</rss>

