<?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: How to run QueryFilter.Subfields using 'MIN()' and 'AS()' function in FGDB in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-run-queryfilter-subfields-using-min-and-as/m-p/1182288#M8249</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/114916"&gt;@RichRuh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be really helpful if you could share some code snippet for the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jun 2022 13:16:30 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2022-06-13T13:16:30Z</dc:date>
    <item>
      <title>How to run QueryFilter.Subfields using 'MIN()' and 'AS()' function in FGDB</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-run-queryfilter-subfields-using-min-and-as/m-p/1181799#M8246</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After connecting to the &lt;STRONG&gt;FGDB database in ArcGIS Pro SDK&lt;/STRONG&gt;, I attempted to run the &lt;STRONG&gt;QueryFilter&lt;/STRONG&gt;. I believe the error is due to the subfields, however I'm not sure if this is the correct method to write &lt;STRONG&gt;QueryFilter.Subfileds&lt;/STRONG&gt; &lt;STRONG&gt;in the FGDB database&lt;/STRONG&gt;.&amp;nbsp; I've included the code below.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error message - "A column was provided that does not exist,"&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Could someone please help me out with this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShabinaBano_0-1654857984967.png" style="width: 830px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43201i6D3453F9EBF00C8C/image-dimensions/830x191?v=v2" width="830" height="191" role="button" title="ShabinaBano_0-1654857984967.png" alt="ShabinaBano_0-1654857984967.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;-----------code---------------------------&lt;/P&gt;&lt;P&gt;var featureClassAsSubEvtTableName = new Geodatabase(new FileGeodatabaseConnectionPath(new Uri(rootFolder))).OpenDataset&amp;lt;Table&amp;gt;((tableName));&lt;BR /&gt;&lt;BR /&gt;QueryFilter queryFilterSubEvtSelected = new QueryFilter();&lt;BR /&gt;queryFilterSubEvtSelected.SubFields = $"{selectedColumnsForWhereClause}, MIN({fromMeasure}) AS {fromMeasure}";&lt;BR /&gt;queryFilterSubEvtSelected.WhereClause = $"LOWER({routeId}) = LOWER('{selectedLineId}')";&lt;BR /&gt;queryFilterSubEvtSelected.PostfixClause = $"group by {selectedColumnsForWhereClause}";&lt;BR /&gt;&lt;BR /&gt;using (RowCursor rowCursorSubEvtMeasure = featureClassAsSubEvtTableName.Search(queryFilterSubEvtSelected, false))&lt;BR /&gt;{&lt;BR /&gt;//code here&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Thanks in Advance!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 11:01:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-run-queryfilter-subfields-using-min-and-as/m-p/1181799#M8246</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-06-10T11:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to run QueryFilter.Subfields using 'MIN()' and 'AS()' function in FGDB</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-run-queryfilter-subfields-using-min-and-as/m-p/1181951#M8248</link>
      <description>&lt;P&gt;Hi Shabina,&lt;/P&gt;&lt;P&gt;Table.Search doesn't support functions such as "Min()". Check out the Table.CalculateStatistics method instead.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/#topic19997.html" target="_self"&gt;API class reference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Geodatabase#calculating-statistics" target="_self"&gt;Conceptual doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 16:48:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-run-queryfilter-subfields-using-min-and-as/m-p/1181951#M8248</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2022-06-10T16:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to run QueryFilter.Subfields using 'MIN()' and 'AS()' function in FGDB</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-run-queryfilter-subfields-using-min-and-as/m-p/1182288#M8249</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/114916"&gt;@RichRuh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be really helpful if you could share some code snippet for the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 13:16:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-run-queryfilter-subfields-using-min-and-as/m-p/1182288#M8249</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-06-13T13:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to run QueryFilter.Subfields using 'MIN()' and 'AS()' function in FGDB</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-run-queryfilter-subfields-using-min-and-as/m-p/1182436#M8250</link>
      <description>&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Geodatabase#calculating-statistics-on-a-table" target="_self"&gt;This snippet shows how to calculate the Sum and Average of a set of fields.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 19:06:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-run-queryfilter-subfields-using-min-and-as/m-p/1182436#M8250</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2022-06-13T19:06:42Z</dc:date>
    </item>
  </channel>
</rss>

