<?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: SQL query expression in related table in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/sql-query-expression-in-related-table/m-p/1063958#M43358</link>
    <description>&lt;P&gt;Help please.. can anyone help me?&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jun 2021 06:15:42 GMT</pubDate>
    <dc:creator>luxairport_rim</dc:creator>
    <dc:date>2021-06-02T06:15:42Z</dc:date>
    <item>
      <title>SQL query expression in related table</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-query-expression-in-related-table/m-p/1061714#M43345</link>
      <description>&lt;P&gt;Good afternoon&lt;/P&gt;&lt;P&gt;I have a feature of points &amp;lt;Points_defauts&amp;gt; &amp;nbsp;that has a related table, used to store the evolution of a certain object&lt;/P&gt;&lt;P&gt;I am trying to do a table join in ArcMap, in order to obtain the latest record.&lt;/P&gt;&lt;P&gt;I started to do a definition query in the related table in order to get the latest value collected, an then do the table join.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my related table I have has an external Key field [Point_ID] and a field date [CreationDate].&lt;/P&gt;&lt;P&gt;I just want to have the latest record, based on the date field.&lt;/P&gt;&lt;P&gt;In made some google and I found this query:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[POINT_ID],[CREATIONDATE] IN&lt;/P&gt;&lt;P&gt;(SELECT [POINT_ID],[CREATIONDATE]&lt;/P&gt;&lt;P&gt;FROM TABLE AS table1&lt;/P&gt;&lt;P&gt;GROUP BY [POINT_ID]&lt;/P&gt;&lt;P&gt;HAVING COUNT([POINT_ID]) &amp;gt; 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, an expression error is the only result I have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this expression possible in ArcMap?&lt;/P&gt;&lt;P&gt;What I am doing wrong??&lt;/P&gt;&lt;P&gt;Sorry, but I’m newbie in sql expressions…&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="luxairportluxairport_0-1622028364033.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14180iF242022D1374DB97/image-size/medium?v=v2&amp;amp;px=400" role="button" title="luxairportluxairport_0-1622028364033.png" alt="luxairportluxairport_0-1622028364033.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 11:26:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-query-expression-in-related-table/m-p/1061714#M43345</guid>
      <dc:creator>luxairport_rim</dc:creator>
      <dc:date>2021-05-26T11:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: SQL query expression in related table</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-query-expression-in-related-table/m-p/1061837#M43347</link>
      <description>&lt;P&gt;If you haven't done so already, I suggest you read &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/tables/about-joining-and-relating-tables.htm" target="_blank"&gt;About joining and relating tables—ArcMap | Documentation (arcgis.com)&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;You mention "my related table," have you set up a table relation in the software between the two tables, or are you just talking about two tables that are related logically but you haven't created a formal relation between them in ArcMap?&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 15:29:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-query-expression-in-related-table/m-p/1061837#M43347</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-05-26T15:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: SQL query expression in related table</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-query-expression-in-related-table/m-p/1061989#M43348</link>
      <description>&lt;P&gt;I have done the relationship 1:N in the geodatabase correctly, with intern and external key.&amp;nbsp;&lt;BR /&gt;my problem is after… I have several rows with same ID with different dates&lt;/P&gt;&lt;P&gt;i want make a query view in the related table that give me only the last register based on date&lt;/P&gt;&lt;P&gt;in AGOL it is possible, but I need to have the same &amp;nbsp;function in ArcMap&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 19:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-query-expression-in-related-table/m-p/1061989#M43348</guid>
      <dc:creator>luxairport_rim</dc:creator>
      <dc:date>2021-05-26T19:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: SQL query expression in related table</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-query-expression-in-related-table/m-p/1063958#M43358</link>
      <description>&lt;P&gt;Help please.. can anyone help me?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 06:15:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-query-expression-in-related-table/m-p/1063958#M43358</guid>
      <dc:creator>luxairport_rim</dc:creator>
      <dc:date>2021-06-02T06:15:42Z</dc:date>
    </item>
  </channel>
</rss>

