<?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 Use SQL query expression as filter in Calculate Field GP Tool in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/use-sql-query-expression-as-filter-in-calculate/m-p/1366144#M76932</link>
    <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 3.2.1; Mobile Geodatabase&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/3.1/help/mapping/navigation/sql-reference-for-elements-used-in-query-expressions.htm#:~:text=Use%20the-,Calculate%20Field,-geoprocessing%20tool%20to" target="_self"&gt;SQL reference for query expressions used in ArcGIS&lt;/A&gt; docs say:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Within ArcGIS Pro, the &lt;STRONG&gt;SQL expression dialog box&lt;/STRONG&gt; can be found in the following locations:&lt;/P&gt;&lt;P&gt;...Use the&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.1/tool-reference/data-management/calculate-field.htm" target="_blank" rel="noopener"&gt;Calculate Field&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;geoprocessing tool to create an expression to perform simple or complex calculations on field values.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I want to use a .exp file as an expression in the Calculate Field tool to filter the rows that the field calculation will be applied to.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_3-1704349427575.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90481iFB6EB826691562F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_3-1704349427575.png" alt="Bud_3-1704349427575.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, I don't see an option/button in the tool for loading a .exp query expression file. I only see an option to load a field calculation .cal file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_2-1704348856601.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90480i813F42E6E6359462/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_2-1704348856601.png" alt="Bud_2-1704348856601.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Are SQL expressions as &lt;U&gt;filters&lt;/U&gt;&amp;nbsp;not supported in the Calculate Field GP tool?&lt;/LI&gt;&lt;LI&gt;Are the docs trying to suggest that the .cal calculator script is a SQL expression, when SQL is chosen in the Expression Type parameter picklist?&lt;/LI&gt;&lt;LI&gt;Why do the docs mention the &lt;STRONG&gt;"SQL expression &lt;U&gt;dialog box&lt;/U&gt;"&lt;/STRONG&gt;? I don't see SQL expression dialog box functionality anywhere in the tool.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2024 06:33:52 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2024-01-04T06:33:52Z</dc:date>
    <item>
      <title>Use SQL query expression as filter in Calculate Field GP Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-sql-query-expression-as-filter-in-calculate/m-p/1366144#M76932</link>
      <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 3.2.1; Mobile Geodatabase&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/3.1/help/mapping/navigation/sql-reference-for-elements-used-in-query-expressions.htm#:~:text=Use%20the-,Calculate%20Field,-geoprocessing%20tool%20to" target="_self"&gt;SQL reference for query expressions used in ArcGIS&lt;/A&gt; docs say:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Within ArcGIS Pro, the &lt;STRONG&gt;SQL expression dialog box&lt;/STRONG&gt; can be found in the following locations:&lt;/P&gt;&lt;P&gt;...Use the&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.1/tool-reference/data-management/calculate-field.htm" target="_blank" rel="noopener"&gt;Calculate Field&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;geoprocessing tool to create an expression to perform simple or complex calculations on field values.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I want to use a .exp file as an expression in the Calculate Field tool to filter the rows that the field calculation will be applied to.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_3-1704349427575.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90481iFB6EB826691562F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_3-1704349427575.png" alt="Bud_3-1704349427575.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, I don't see an option/button in the tool for loading a .exp query expression file. I only see an option to load a field calculation .cal file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_2-1704348856601.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90480i813F42E6E6359462/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_2-1704348856601.png" alt="Bud_2-1704348856601.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Are SQL expressions as &lt;U&gt;filters&lt;/U&gt;&amp;nbsp;not supported in the Calculate Field GP tool?&lt;/LI&gt;&lt;LI&gt;Are the docs trying to suggest that the .cal calculator script is a SQL expression, when SQL is chosen in the Expression Type parameter picklist?&lt;/LI&gt;&lt;LI&gt;Why do the docs mention the &lt;STRONG&gt;"SQL expression &lt;U&gt;dialog box&lt;/U&gt;"&lt;/STRONG&gt;? I don't see SQL expression dialog box functionality anywhere in the tool.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 06:33:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-sql-query-expression-as-filter-in-calculate/m-p/1366144#M76932</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-01-04T06:33:52Z</dc:date>
    </item>
  </channel>
</rss>

