<?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 Desktop Query Syntax for Hosted Feature Layer in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/desktop-query-syntax-for-hosted-feature-layer/m-p/760765#M37247</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a hosted feature layer in AGOL that I want to query from ArcMap (10.2.2) to find records where a date field occurs before another date field plus one year.&amp;nbsp; When the data resides in a file geodatabase I can do this query using the following syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14357656668083648 jive_text_macro" data-renderedposition="71_8_912_16" jivemacro_uid="_14357656668083648"&gt;&lt;P&gt;Date_Cert_Due &amp;lt; Date_Work_Finished+365&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This selects those records whose Date_Cert_Due is before the Date_Work_Finished plus one year.&amp;nbsp; When I try to do the same query on my hosted feature layer the query looks very similar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14357658779864554 jive_text_macro" data-renderedposition="171_8_912_16" jivemacro_uid="_14357658779864554"&gt;&lt;P&gt;"Date_Cert_Due" &amp;lt; "Date_Work_Finished" + 365&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I verify the SQL, I get "There was an error with the expression."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using single quotes and no quotes and they didn't work.&amp;nbsp; What am I missing?&amp;nbsp; Can I do this type of query of a hosted feature layer from ArcMap on my desktop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2015 15:56:51 GMT</pubDate>
    <dc:creator>JimW</dc:creator>
    <dc:date>2015-07-01T15:56:51Z</dc:date>
    <item>
      <title>Desktop Query Syntax for Hosted Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/desktop-query-syntax-for-hosted-feature-layer/m-p/760765#M37247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a hosted feature layer in AGOL that I want to query from ArcMap (10.2.2) to find records where a date field occurs before another date field plus one year.&amp;nbsp; When the data resides in a file geodatabase I can do this query using the following syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14357656668083648 jive_text_macro" data-renderedposition="71_8_912_16" jivemacro_uid="_14357656668083648"&gt;&lt;P&gt;Date_Cert_Due &amp;lt; Date_Work_Finished+365&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This selects those records whose Date_Cert_Due is before the Date_Work_Finished plus one year.&amp;nbsp; When I try to do the same query on my hosted feature layer the query looks very similar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14357658779864554 jive_text_macro" data-renderedposition="171_8_912_16" jivemacro_uid="_14357658779864554"&gt;&lt;P&gt;"Date_Cert_Due" &amp;lt; "Date_Work_Finished" + 365&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I verify the SQL, I get "There was an error with the expression."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using single quotes and no quotes and they didn't work.&amp;nbsp; What am I missing?&amp;nbsp; Can I do this type of query of a hosted feature layer from ArcMap on my desktop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 15:56:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/desktop-query-syntax-for-hosted-feature-layer/m-p/760765#M37247</guid>
      <dc:creator>JimW</dc:creator>
      <dc:date>2015-07-01T15:56:51Z</dc:date>
    </item>
  </channel>
</rss>

