<?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: selecting maximum value of an attribute table to create a layer in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-maximum-value-of-an-attribute-table-to/m-p/1106141#M46510</link>
    <description>&lt;P&gt;Thanks for your replay.It's work for a simple table, but I have a table joined with another.&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Could this be the problem?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Oct 2021 20:36:47 GMT</pubDate>
    <dc:creator>SalvoA</dc:creator>
    <dc:date>2021-10-08T20:36:47Z</dc:date>
    <item>
      <title>selecting maximum value of an attribute table to create a layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-maximum-value-of-an-attribute-table-to/m-p/1106053#M46494</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would create an event layer&amp;nbsp; in ArcMap &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;selecting values from a table&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp; with a sql query.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;In particular I would like to select the row with the maximum value of an attribute, so&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I thinked a sql query as:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;RealPosition.Easting = ( SELECT MAX ( RealPosition.Easting ) FROM RealPosition )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;where RealPosition is the table and Easting is the attributo but the select tool but it says an invalid sql expression was used. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;How can I solve?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Oct 2021 18:34:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-maximum-value-of-an-attribute-table-to/m-p/1106053#M46494</guid>
      <dc:creator>SalvoA</dc:creator>
      <dc:date>2021-10-08T18:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: selecting maximum value of an attribute table to create a layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-maximum-value-of-an-attribute-table-to/m-p/1106062#M46496</link>
      <description>&lt;P&gt;In ArcMap, I can open the table &amp;gt; Table Options &amp;gt; Select By Attributes.&lt;/P&gt;&lt;P&gt;Use a similar expression&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;FIELD_NAME = (SELECT MAX(FIELD_NAME) FROM TABLE_NAME)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayantaPoddar_0-1633719589362.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/24871i4FA03E0D93F31737/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayantaPoddar_0-1633719589362.png" alt="JayantaPoddar_0-1633719589362.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;Easting = (SELECT MAX(Easting) FROM RealPosition)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 19:01:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-maximum-value-of-an-attribute-table-to/m-p/1106062#M46496</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-10-08T19:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: selecting maximum value of an attribute table to create a layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-maximum-value-of-an-attribute-table-to/m-p/1106141#M46510</link>
      <description>&lt;P&gt;Thanks for your replay.It's work for a simple table, but I have a table joined with another.&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Could this be the problem?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 20:36:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-maximum-value-of-an-attribute-table-to/m-p/1106141#M46510</guid>
      <dc:creator>SalvoA</dc:creator>
      <dc:date>2021-10-08T20:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: selecting maximum value of an attribute table to create a layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-maximum-value-of-an-attribute-table-to/m-p/1106157#M46513</link>
      <description>&lt;P&gt;Oh!&lt;/P&gt;&lt;P&gt;A similar expression (to your original expression) works for me. My tables are stored in a File Geodatabase.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayantaPoddar_0-1633727941958.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/24894iDB764959B2BDEDDA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayantaPoddar_0-1633727941958.png" alt="JayantaPoddar_0-1633727941958.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 21:22:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-maximum-value-of-an-attribute-table-to/m-p/1106157#M46513</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-10-08T21:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: selecting maximum value of an attribute table to create a layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-maximum-value-of-an-attribute-table-to/m-p/1106221#M46527</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;The problem is that I used a "join" where a "relate" was needed, so it didn't work.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;I have another problem:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;I want select max value between rows that have an attribute equal to a value(for example Unit = 'TAB1')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Is it possible to do "&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;sequential sql queries&lt;/SPAN&gt;&lt;/SPAN&gt; "?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2021 13:18:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-maximum-value-of-an-attribute-table-to/m-p/1106221#M46527</guid>
      <dc:creator>SalvoA</dc:creator>
      <dc:date>2021-10-09T13:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: selecting maximum value of an attribute table to create a layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-maximum-value-of-an-attribute-table-to/m-p/1106241#M46534</link>
      <description>&lt;P&gt;I think I understand the question, but an example using some sample data would be most helpful.&amp;nbsp; If you want to select the maximum value in a group:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;ID&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;A&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;A&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;&lt;STRONG&gt;10&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;C&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;&lt;STRONG&gt;C&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;&lt;STRONG&gt;6&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;It can be possible, but it depends on the back-end data source because SQL support is based on the data source.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2021 18:46:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-maximum-value-of-an-attribute-table-to/m-p/1106241#M46534</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-10-09T18:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: selecting maximum value of an attribute table to create a layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-maximum-value-of-an-attribute-table-to/m-p/1106338#M46547</link>
      <description>&lt;P&gt;Yes, your example is correct.&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;what kind of database should I use?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 08:03:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-maximum-value-of-an-attribute-table-to/m-p/1106338#M46547</guid>
      <dc:creator>SalvoA</dc:creator>
      <dc:date>2021-10-11T08:03:08Z</dc:date>
    </item>
  </channel>
</rss>

