<?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 'Select Min Value by Group' SQL Query Not Working in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/select-min-value-by-group-sql-query-not-working/m-p/1272273#M67259</link>
    <description>&lt;P&gt;Using ArcGIS Pro 3.1, I have a point featureclass: &lt;EM&gt;SalinityPoints, &lt;/EM&gt;which is in a File Geodatabase. Using the Select by Attributes tool, I want to group these values by the field &lt;EM&gt;Sal_Met_ID_Text &lt;/EM&gt;(text field)&lt;EM&gt;,&amp;nbsp;&lt;/EM&gt;then select the minimum value from the field&amp;nbsp;&lt;EM&gt;Salinity_Bottom&lt;/EM&gt; (double field)&amp;nbsp; in each group.&lt;/P&gt;&lt;P&gt;I have found what I thought was the correct SQL query for this in several places around the internet, but when I use it, I get only 3 rows selected (which are not the minimum salinity for each group), when there should be 62 rows selected as there are 62 unique values in the&amp;nbsp;&lt;EM&gt;Sal_Met_ID_Text&amp;nbsp;&lt;/EM&gt;field:&lt;/P&gt;&lt;P&gt;Salinity_Bottom = (SELECT MIN ( Salinity_Bottom ) FROM &lt;EM&gt;SalinityPoints&lt;/EM&gt; GROUP BY Sal_Met_ID_Text )&lt;/P&gt;&lt;P&gt;Any ideas where I am going wrong here please? .gdb attached.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2023 23:58:00 GMT</pubDate>
    <dc:creator>kawakawa4</dc:creator>
    <dc:date>2023-03-27T23:58:00Z</dc:date>
    <item>
      <title>'Select Min Value by Group' SQL Query Not Working</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-min-value-by-group-sql-query-not-working/m-p/1272273#M67259</link>
      <description>&lt;P&gt;Using ArcGIS Pro 3.1, I have a point featureclass: &lt;EM&gt;SalinityPoints, &lt;/EM&gt;which is in a File Geodatabase. Using the Select by Attributes tool, I want to group these values by the field &lt;EM&gt;Sal_Met_ID_Text &lt;/EM&gt;(text field)&lt;EM&gt;,&amp;nbsp;&lt;/EM&gt;then select the minimum value from the field&amp;nbsp;&lt;EM&gt;Salinity_Bottom&lt;/EM&gt; (double field)&amp;nbsp; in each group.&lt;/P&gt;&lt;P&gt;I have found what I thought was the correct SQL query for this in several places around the internet, but when I use it, I get only 3 rows selected (which are not the minimum salinity for each group), when there should be 62 rows selected as there are 62 unique values in the&amp;nbsp;&lt;EM&gt;Sal_Met_ID_Text&amp;nbsp;&lt;/EM&gt;field:&lt;/P&gt;&lt;P&gt;Salinity_Bottom = (SELECT MIN ( Salinity_Bottom ) FROM &lt;EM&gt;SalinityPoints&lt;/EM&gt; GROUP BY Sal_Met_ID_Text )&lt;/P&gt;&lt;P&gt;Any ideas where I am going wrong here please? .gdb attached.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 23:58:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-min-value-by-group-sql-query-not-working/m-p/1272273#M67259</guid>
      <dc:creator>kawakawa4</dc:creator>
      <dc:date>2023-03-27T23:58:00Z</dc:date>
    </item>
  </channel>
</rss>

