<?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 Query for Distinct Values in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-for-distinct-values/m-p/678759#M3301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First post here in the forums! We're really just getting started with ArcServer, but I was wondering whether there is a way to return only distinct values when performing a query via the REST API. For instance, I have a layer containing ~50,000 features. I would like to return the distinct values for a particular field. If necessary, I could retrieve all the features, and then process the result in my web application. However, I would like to avoid this extra overhead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to accomplish this via the REST API? If not, how do people usually go about this - direct queries against the SDE tables?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help or suggestions would be appreciated - thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Clayton&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Aug 2011 16:49:31 GMT</pubDate>
    <dc:creator>ClaytonDonahue</dc:creator>
    <dc:date>2011-08-01T16:49:31Z</dc:date>
    <item>
      <title>Query for Distinct Values</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-for-distinct-values/m-p/678759#M3301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First post here in the forums! We're really just getting started with ArcServer, but I was wondering whether there is a way to return only distinct values when performing a query via the REST API. For instance, I have a layer containing ~50,000 features. I would like to return the distinct values for a particular field. If necessary, I could retrieve all the features, and then process the result in my web application. However, I would like to avoid this extra overhead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to accomplish this via the REST API? If not, how do people usually go about this - direct queries against the SDE tables?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help or suggestions would be appreciated - thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Clayton&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 16:49:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-for-distinct-values/m-p/678759#M3301</guid>
      <dc:creator>ClaytonDonahue</dc:creator>
      <dc:date>2011-08-01T16:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Query for Distinct Values</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-for-distinct-values/m-p/678760#M3302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;REST does not support querying DISTINCT values at 10.0 and prior releases.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 19:37:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-for-distinct-values/m-p/678760#M3302</guid>
      <dc:creator>SrinivasVinnakota</dc:creator>
      <dc:date>2011-08-01T19:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Query for Distinct Values</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-for-distinct-values/m-p/678761#M3303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Srinivas,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your reply. You said that this feature is not available in 10.0 and prior releases ... does this mean that the "query distinct" behavior is expected to be available in the 10.1 release?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Clayton&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 14:21:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-for-distinct-values/m-p/678761#M3303</guid>
      <dc:creator>ClaytonDonahue</dc:creator>
      <dc:date>2011-08-02T14:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Query for Distinct Values</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-for-distinct-values/m-p/678762#M3304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Howdy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The "returnDistinctValues�?� parameter of the Query task is now supported as of version 10.1 SP1. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More information can be found here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/rest/apiref/index.html"&gt;http://resources.arcgis.com/en/help/rest/apiref/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Noah&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 20:56:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-for-distinct-values/m-p/678762#M3304</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2013-05-16T20:56:27Z</dc:date>
    </item>
  </channel>
</rss>

