<?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: Using min-max functions in definition queries of feature services in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/using-min-max-functions-in-definition-queries-of/m-p/678340#M33640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jan 2018 23:03:29 GMT</pubDate>
    <dc:creator>Egan_LouisFajardo</dc:creator>
    <dc:date>2018-01-24T23:03:29Z</dc:date>
    <item>
      <title>Using min-max functions in definition queries of feature services</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-min-max-functions-in-definition-queries-of/m-p/678339#M33639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using a feature service from ArcGIS Online, I would like to display a record wherein one of its attributes is the max of the entire records, but is unable to do so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am using a Feature Class from a geodatabase, I would normally just specify something like this in the definition query:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="394377" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/394377_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The image above will only show records with the smallest and largest numerical value in its "admin id" field, and this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when using a feature service, my challenge is identifying the table name to use. Below is the actual query being tested by me:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="394378" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/394378_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The intention of the above query is to make it show the last record edited. In lieu of the table name, ArcGIS shows a zero (0) instead. I have tried replacing the ? with 0, 1, and the layer name, but they seem to be incorrect.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="394394" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/394394_pastedImage_3.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The feature service being used was automatically created by ArcGIS Survey123, so there's no MXD for me to apply the definition query on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on what I can do to do this? &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jan 2018 03:26:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-min-max-functions-in-definition-queries-of/m-p/678339#M33639</guid>
      <dc:creator>Egan_LouisFajardo</dc:creator>
      <dc:date>2018-01-20T03:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using min-max functions in definition queries of feature services</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-min-max-functions-in-definition-queries-of/m-p/678340#M33640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 23:03:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-min-max-functions-in-definition-queries-of/m-p/678340#M33640</guid>
      <dc:creator>Egan_LouisFajardo</dc:creator>
      <dc:date>2018-01-24T23:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using min-max functions in definition queries of feature services</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-min-max-functions-in-definition-queries-of/m-p/678341#M33641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Turns out that subqueries as part of the where clause is not possible in this scenario. ArcGIS Online only allows &lt;A href="http://doc.arcgis.com/en/arcgis-online/reference/sql-agol.htm" rel="nofollow noreferrer"&gt;standard queries&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 09:12:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-min-max-functions-in-definition-queries-of/m-p/678341#M33641</guid>
      <dc:creator>Egan_LouisFajardo</dc:creator>
      <dc:date>2018-01-26T09:12:58Z</dc:date>
    </item>
  </channel>
</rss>

