<?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: QueryTask + Query with TOP Values in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/querytask-query-with-top-values/m-p/601763#M13391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Evelyn,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Using SQL functions like TOP would mean that you have to have access to the whole select statement and that is not possible on ArcGIS Server. You only have access to the &lt;/SPAN&gt;&lt;STRONG&gt;Where&lt;/STRONG&gt;&lt;SPAN&gt; clause portion of the select statement.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Feb 2014 23:40:27 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2014-02-17T23:40:27Z</dc:date>
    <item>
      <title>QueryTask + Query with TOP Values</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/querytask-query-with-top-values/m-p/601762#M13390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello me again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Im trying to find any info about making queries with the TOP (n)&amp;nbsp; relation as its in SQL or another kind of DB languages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to do it with flex?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only things that i have found its something about using StatisticDefinition parameters, but it doesnt allow to use TOP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for ur help (:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 19:25:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/querytask-query-with-top-values/m-p/601762#M13390</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2014-02-17T19:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: QueryTask + Query with TOP Values</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/querytask-query-with-top-values/m-p/601763#M13391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Evelyn,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Using SQL functions like TOP would mean that you have to have access to the whole select statement and that is not possible on ArcGIS Server. You only have access to the &lt;/SPAN&gt;&lt;STRONG&gt;Where&lt;/STRONG&gt;&lt;SPAN&gt; clause portion of the select statement.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 23:40:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/querytask-query-with-top-values/m-p/601763#M13391</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-02-17T23:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: QueryTask + Query with TOP Values</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/querytask-query-with-top-values/m-p/601764#M13392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what you can do is to do a subselect in the &lt;/SPAN&gt;&lt;STRONG&gt;WHERE &lt;/STRONG&gt;&lt;SPAN&gt;Clause, like that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;OBJECTID IN (SELECT TOP 20 OBJECTID FROM [SAME_TABLE])&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;The inner Select selects the first 20 OBJECTIDs from the Table, the Layer gets its data from.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The outer select limits then the query to the results you want. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Be careful, the innerselect may be a problem, if your featureclass is versioned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this will help you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andreas Ruloffs&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 07:15:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/querytask-query-with-top-values/m-p/601764#M13392</guid>
      <dc:creator>AndreasRuloffs1</dc:creator>
      <dc:date>2014-02-18T07:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: QueryTask + Query with TOP Values</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/querytask-query-with-top-values/m-p/601765#M13393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for all ur help guys i really appreciate it (:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 09:40:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/querytask-query-with-top-values/m-p/601765#M13393</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2014-02-18T09:40:11Z</dc:date>
    </item>
  </channel>
</rss>

