<?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: Symbolizing Feature Class using related table values in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/820272#M3709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm in a similar situation. I have a feature service with a related record and want to symbolize my feature using the latest record from the related table not as a snapshot but real-time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will really appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abi&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Mar 2020 19:20:23 GMT</pubDate>
    <dc:creator>AbiDhakal</dc:creator>
    <dc:date>2020-03-16T19:20:23Z</dc:date>
    <item>
      <title>Symbolizing Feature Class using related table values</title>
      <link>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/820264#M3701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am branching off this thread:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/164994"&gt;https://community.esri.com/message/772784-re-collector-use-related-layer-to-symbolise-feature&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a manhole inspections fc, related to a inspection history table, using the Parent's 'GlobalID' field&amp;nbsp;(aka gid)/ and Child's 'Parent guid' field&amp;nbsp;in a one to many relationship, &lt;BR /&gt;and the table has attachments using gid/Parent guid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to symbolize the parent feature class based off fields from the child table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, I've attempted two methods:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&lt;BR /&gt;I attempted the sql script from the FC in arcmap using this definition query:&lt;BR /&gt;SELECT * FROM ssManholeInspections WHERE:&lt;BR /&gt;GlobalID IN (SELECT ParentGUID from ssManholeInspectionsHistory)&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;The resulting fc ends up with 4292 records, even though the inspection history table has 4665 records.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;2.&lt;/DIV&gt;&lt;DIV&gt;Joining the table to the fc also results in 4292 records, with the 'Validate Join' Button producing a Join Validation Report&lt;BR /&gt;Dialog window that says:&lt;BR /&gt;&lt;SPAN style="font-size: 11px;"&gt;&lt;EM&gt;The number of matching records for the join:&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px;"&gt;&lt;EM&gt;- 4292 of 7454 records matched by joining [GlobalID] from &amp;lt;ssManholeInspections&amp;gt; with [ParentGUID] from &amp;lt;ssManholeInspectionsHistory&amp;gt;.&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px;"&gt;&lt;EM&gt;Matching records may not appear in table view due to join validation errors.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr" style="text-align: center;"&gt;&lt;SPAN style="font-size: 11px;"&gt;&lt;EM&gt;Cardinality Warning:&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px;"&gt;&lt;EM&gt;Join Validation detected 4665 non-distinct matching records when using [GlobalID] from &amp;lt;ssManholeInspections&amp;gt; with [ParentGUID] from &amp;lt;ssManholeInspectionsHistory&amp;gt;.&amp;nbsp; For geodatabase data, ArcMap will join all matching records, although only the first matching record will be displayed in the attribute table of &amp;lt;ssManholeInspections&amp;gt;.&amp;nbsp; This relationship is 1:Many or Many:Many. When working with 1:M and M:M relationships, it is recommended that relates or Relationship Classes be used instead of joins.&amp;nbsp; Refer to the ArcGIS Desktop Help topic: About joining and relating tables for best practices on creating relationships between tables.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;It is fine that 7454 records did not join because not all manholes have been inspected yet.&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both cases, o&lt;SPAN style="background-color: #ffffff;"&gt;nly the first matching record is returned, which is incorrect.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;It seems that I can only&amp;nbsp;display the&amp;nbsp;latest record (kind of like a 1:1 join),&amp;nbsp;so I would have to include in the&amp;nbsp;definition query the ability to&amp;nbsp;pick the latest inspection date (which is&amp;nbsp;updated using the editor tracking create date field, named&amp;nbsp;'InsStart' with Data type of Date) per unique foreign key (Parent GUID).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I suppose the correct query should also yield 4292 records, but&amp;nbsp;it should return the records with the latest inspection date per ParentGUID, instead of&amp;nbsp; returning o&lt;SPAN style="background-color: #ffffff;"&gt;nly the first matching record.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;In order to verify the expected count,&lt;/SPAN&gt; I used the summary statistics tool on max date, case field guid.&lt;/P&gt;&lt;P&gt;This gave me the 4292 records I needed.&lt;/P&gt;&lt;P&gt;Yet, this is static, and I would like to see these records in real time as the data is edited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These threads also talk&amp;nbsp;about my question, but&amp;nbsp;I would like help&amp;nbsp;to put it into context.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2050" data-containertype="14" data-objectid="90206" data-objecttype="1" href="https://community.esri.com/thread/90206"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline;"&gt;https://community.esri.com/thread/90206&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2145" data-containertype="14" data-objectid="194907" data-objecttype="1" href="https://community.esri.com/thread/194907-select-records-with-most-recent-date-for-groups-of-points"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline;"&gt;https://community.esri.com/thread/194907-select-records-with-most-recent-date-for-groups-of-points&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline;"&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/169714"&gt;https://community.esri.com/thread/169714&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 13:58:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/820264#M3701</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2018-05-18T13:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolizing Feature Class using related table values</title>
      <link>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/820265#M3702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following was created using SQL Management studio:&lt;/P&gt;&lt;PRE class="line-numbers language-sql"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;SELECT&lt;/SPAN&gt; ss&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GlobalID &lt;SPAN class="keyword token"&gt;AS&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'FC_Global_ID'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ss&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;OBJECTID &lt;SPAN class="keyword token"&gt;AS&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'FC_LONGINTEGEROID'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ssh&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ParentGUID &lt;SPAN class="keyword token"&gt;AS&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Parent_GUID'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;MAX&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ssh&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;InsStart&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;AS&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Inspection_Date_Time'&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;FROM&lt;/SPAN&gt; Sanitary&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sde&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ssManholeInspections_evw &lt;SPAN class="keyword token"&gt;AS&lt;/SPAN&gt; ss &lt;SPAN class="keyword token"&gt;JOIN&lt;/SPAN&gt; Sanitary&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sde&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ssManholeInspectionsHistory_evw &lt;SPAN class="keyword token"&gt;AS&lt;/SPAN&gt; ssh &lt;SPAN class="keyword token"&gt;ON&lt;/SPAN&gt; ss&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GlobalID &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ssh&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ParentGUID &lt;SPAN class="keyword token"&gt;GROUP&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;BY&lt;/SPAN&gt; ss&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GlobalID&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ssh&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ParentGUID&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ss&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;OBJECTID‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Database view gp tool&lt;/P&gt;&lt;P&gt;Register the view with the geodatabase:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/groups/geodatabase/blog/2016/12/14/new-at-105-registering-a-database-view-with-the-geodatabase"&gt;https://community.esri.com/groups/geodatabase/blog/2016/12/14/new-at-105-registering-a-database-view-with-the-geodatabase&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Enable Editing privileges&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My concern is that I'd rather not create a database view, as I heard it slows performance.&lt;/P&gt;&lt;P&gt;If I must use a view, then I might use it as an intermediary which loads/overwrites the refreshed data daily into a table with the same schema as the view.&lt;/P&gt;&lt;P&gt;This makes the data static on a daily basis&lt;/P&gt;&lt;P&gt;For more information about this, read this&amp;nbsp;post I contributed to:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/message/774426-re-versioned-views-versus-sql-views-with-a-spatial-column?commentID=774426#comment-774426"&gt;https://community.esri.com/message/774426-re-versioned-views-versus-sql-views-with-a-spatial-column?commentID=774426#comment-774426&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd rather create a definition query in the arcmap&amp;nbsp;layer properties, because then I believe this would be a live query on the child table, that I can then join directly to the parent feature class to symbolize off of.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 16:41:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/820265#M3702</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2018-05-21T16:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolizing Feature Class using related table values</title>
      <link>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/820266#M3703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am doing a very similar workflow and I solved it through the use of a SQL view.&amp;nbsp; I am joining my MH's to my inspections and in order to return the last inspection (by date) in the related table I use the MAX function. In my view I also calculate the total inspections on each MH and the age of the last inspection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,MAX(inspections.CREATEDON) AS Last_Inspection&lt;BR /&gt; ,COUNT(*) AS Number_Inspections&lt;/P&gt;&lt;P&gt;,DATEDIFF(DAY,a.CREATEDON,GETDATE()) + 1 AS INSPAGEDAYS&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 17:23:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/820266#M3703</guid>
      <dc:creator>BrandonKeller</dc:creator>
      <dc:date>2018-05-21T17:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolizing Feature Class using related table values</title>
      <link>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/820267#M3704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brandon.&lt;/P&gt;&lt;P&gt;I'm not quite sure what you mean.&lt;/P&gt;&lt;P&gt;Can you explain and break down your SQL script for me?&lt;/P&gt;&lt;P&gt;Would it be easier to explain over the phone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 19:36:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/820267#M3704</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2018-05-21T19:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolizing Feature Class using related table values</title>
      <link>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/820268#M3705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on this documentation, I found out that there is a limitation in using subqueries:&lt;/P&gt;&lt;P style="margin: 0px 0px 11px;"&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/sql-reference-for-query-expressions-used-in-arcgis.htm#GUID-F5320DB5-4E54-4D49-BF31-A58F5379ED9F"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline;"&gt;http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/sql-reference-for-query-expressions-used-in-arcgis.htm#GUID-F5320DB5-4E54-4D49-BF31-A58F5379ED9F&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 11px; text-align: center;"&gt;&lt;SPAN style="font-size: 11px;"&gt;Subqueries that are performed on versioned ArcSDE feature classes and tables will not return features that are stored in the delta tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 11px; text-align: center;"&gt;&lt;SPAN style="font-size: 11px;"&gt;For each record in the table, a subquery may need to parse all the data in its target table. It may be extremely slow to execute on a large dataset.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 11px;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 11px;"&gt;I started to pursue using subqueries to&amp;nbsp;set a&amp;nbsp;definition query on the child table within arcmap to choose the latest inspection record per id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="line-numbers language-sql"&gt;&lt;CODE&gt;OBJECTID &lt;SPAN class="operator token"&gt;in&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;select&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;MAX&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;OBJECTID&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; Sanitary&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sde&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ssManholeInspectionsHistory_evw &lt;SPAN class="keyword token"&gt;GROUP&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;BY&lt;/SPAN&gt; ParentGUID&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or&lt;/P&gt;&lt;PRE class="line-numbers language-sql"&gt;&lt;CODE&gt;InsStart &lt;SPAN class="operator token"&gt;in&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;MAX&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;InsStart&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;FROM&lt;/SPAN&gt; Sanitary&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sde&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ssManholeInspectionsHistory_evw &lt;SPAN class="keyword token"&gt;GROUP&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;BY&lt;/SPAN&gt; ParentGUID&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or&lt;/P&gt;&lt;PRE class="line-numbers language-sql"&gt;&lt;CODE&gt;&lt;SPAN class="operator token"&gt;NOT&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;EXISTS&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;FROM&lt;/SPAN&gt; Sanitary&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sde&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ssManholeInspectionsHistory_evw &lt;SPAN class="number token"&gt;f&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;WHERE&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Sanitary.sde.ssManholeInspectionsHistory_evw.ParentGUID'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'f.ParentGUID'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;AND&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'f.InsStart'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Sanitary.sde.ssManholeInspectionsHistory_evw.InsStart'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="margin: 0px 0px 11px;"&gt;This&amp;nbsp;third query seems as if it should work, but I have not been able to get the desired records&amp;nbsp;from it.&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0px 0px 11px;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 11px;"&gt;The first two subqueries returned the desired records for me, yet, when I went to join the queried child table to the parent feature class, using the parent 'global id' field, and child 'ParentGUID' field as the unique identifier, I get this error message from the Join Validation Report:&lt;/P&gt;&lt;P style="margin: 0px 0px 11px; text-align: center;"&gt;&lt;SPAN style="font-size: 11px;"&gt;The number of matching records for the join:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px;"&gt;- Unexpected error encountered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px;"&gt;- No matches found by joining [GlobalID] from &amp;lt;Sanitary.SDE.ssManholeInspections&amp;gt; with [ParentGUID] from &amp;lt;Sanitary.SDE.ssManholeInspectionsHistory&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 11px;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 11px;"&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 14:21:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/820268#M3705</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2018-06-05T14:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolizing Feature Class using related table values</title>
      <link>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/820269#M3706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #a9a9a9; background-color: #ffffff; font-weight: 500;"&gt;@&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A _jive_internal="true" class="" href="https://community.esri.com/thread/215046-symbolizing-feature-class-using-related-table-values#comment-773486" style="color: #a9a9a9; background-color: #ffffff; border: 0px; font-weight: 500; text-decoration: none; font-size: 12.5712px;" title="Go to message"&gt;Andres Castillo&lt;/A&gt; Were you ever able to figure out the solution to this? I have the same question.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2018 14:25:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/820269#M3706</guid>
      <dc:creator>RickBoggs1</dc:creator>
      <dc:date>2018-08-16T14:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolizing Feature Class using related table values</title>
      <link>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/820270#M3707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0px;"&gt;&lt;SPAN style="margin: 0px; color: #1f497d; font-size: medium; font-family: Calibri;"&gt;Hi Rick, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px;"&gt;&lt;SPAN style="margin: 0px; color: #1f497d; font-size: medium; font-family: Calibri;"&gt;Sorry for the delayed reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px;"&gt;&lt;SPAN style="margin: 0px; color: #1f497d; font-size: medium; font-family: Calibri;"&gt;I have to update this thread with the solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px;"&gt;&lt;SPAN style="margin: 0px; color: #1f497d; font-size: medium; font-family: Calibri;"&gt;I have to organize my documentation to strip out sensitive information so I can share.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px;"&gt;&lt;SPAN style="margin: 0px; color: #1f497d; font-size: medium; font-family: Calibri;"&gt;In the meantime, we can do a walk-through via private message.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 13:45:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/820270#M3707</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2018-09-05T13:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolizing Feature Class using related table values</title>
      <link>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/820271#M3708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is the solution, as a word document&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;(See this correct reply in the context of this thread to see the attachment)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Note that there are 17 pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an alternative to my word document, which uses ArcGIS server, ESRI's &lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="2319" data-objecttype="3" href="https://community.esri.com/people/PBarker-esristaff" style="color: #287433; background-color: #ffffff; border: 0px; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;Paul Barker&lt;/A&gt;&lt;/P&gt;&lt;P&gt;tells us of how to solve this when relying on ArcGIS online.&lt;/P&gt;&lt;P&gt;Here is his post:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.esri.com/arcgis-blog/products/product/mapping/visualizing-related-data-with-join-features-in-arcgis-online/" title="https://www.esri.com/arcgis-blog/products/product/mapping/visualizing-related-data-with-join-features-in-arcgis-online/"&gt;Visualizing related data with Join Features in ArcGIS Online&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.esri.com/arcgis-blog/products/product/mapping/visualizing-related-data-with-join-features-in-arcgis-online/" title="https://www.esri.com/arcgis-blog/products/product/mapping/visualizing-related-data-with-join-features-in-arcgis-online/"&gt;https://www.esri.com/arcgis-blog/products/product/mapping/visualizing-related-data-with-join-features-in-arcgis-online/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is another alternative:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2020/03/25/easy-how-to-symbology-using-related-records"&gt;https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2020/03/25/easy-how-to-symbology-using-related-records&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/386815"&gt;Joseph Rhodes&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any questions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2019 14:23:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/820271#M3708</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2019-03-25T14:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolizing Feature Class using related table values</title>
      <link>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/820272#M3709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm in a similar situation. I have a feature service with a related record and want to symbolize my feature using the latest record from the related table not as a snapshot but real-time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will really appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abi&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2020 19:20:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/820272#M3709</guid>
      <dc:creator>AbiDhakal</dc:creator>
      <dc:date>2020-03-16T19:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolizing Feature Class using related table values</title>
      <link>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/1067526#M7238</link>
      <description>&lt;P&gt;&amp;nbsp;I have the same question but with an added "if" condition. I have Manholes. Actually it's Sewer Structures and some of the features are pump stations, some are manholes. So I want to see just the Manholes in this featureclass.&amp;nbsp; And I want join the Inspections from the related ManholeInspection table to it; and keep all features in the feature class (sewerStructures left join to ManholeInspections) so even manholes without an inspection are kept. Now first of all, the issue is it randomly will only keep the first record. I want all inspections.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But.. I also want a layer showing only &lt;STRONG&gt;IF&lt;/STRONG&gt; inspections where the attribute 'NASSCO' = Yes (it is an attribute of yes/no) and of that, I only want the MOST recent one because I want a true count of NASSCO-inspected manholes. Thus I wouldn't want to stack them on top of each other if they'd been NASSCO inspected several times. So I'd just want a MAX DateInspected. To ensure just one record.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, the trickiest question is..... &amp;nbsp; Show Manholes symbolized by related data, but &lt;STRONG&gt;only&lt;/STRONG&gt; if a particular attribute is true. I have SQL Server 2017 and ArcSDE 10.7.1 with ArcMap 10.7.1 and latest Pro. Thoughts all? Can this be done in ArcMap definition query with a subquery or a combination of a SQL view and definition query? Ultimately this will be used to show dashboards and track inspections, for this as well as similar scenario for other datasets.&lt;/P&gt;&lt;P&gt;I would note that this has been easy on AGOL; you can choose which record to keep in a Join and by which field. Not sure why they'd leave out this powerful vital aspect of join logic on Desktop/Pro. All you can do is Keep All Record or Keep Matching. But no choice over which to pick when there is 1-to-Many and multiple hits.&lt;/P&gt;&lt;P&gt;I had thought I could just simply do a view joining Manholes to Inspections, then in ArcMap do a definition query on this to NASSCO=True and then Join this, in ArcMap, to the original feature class. No dice. The problem, is that because it has a definition query, it follows the join and overrides it. And let's say there are 2000 manholes but only 6 that meet the NASSCO=true. As soon as I join the view to the FC; with the view having the Def Query, even if I say Keep All Records, it appears that does not get obeyed, the Def Query follows and overrides that and you get only 6 records. I had hoped just have blanks for the related stuff on all the FC rows except those 6 rows. (in other words 1,994 rows where related data is blank, those 6 rows would have the related data).&amp;nbsp; I think this will have to be done completely in SQL as it seems SQL is limited in ArcMap and so are joins and working with related data.&amp;nbsp; For example, I hit another limitation trying to simply show the most recent record with MAX Data.&amp;nbsp; Seems like ArcGIS can't do a MAX date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;[DateInspected] in (SELECT max( [DateInspected] ) FROM MyDatasesName.DBO.PumpStationInspections__View GROUP BY [GlobalID])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Doesn't work in ArcMap, works perfectly in SQL Server as a view.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/geodatabase-questions/max-date-group-by-id-in-model-builder/td-p/1008256" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/geodatabase-questions/max-date-group-by-id-in-model-builder/td-p/1008256&lt;/A&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If I figure this out, I'll update ....&lt;/DIV&gt;&lt;DIV&gt;Overall platform suggestion for 2021: more focus on related data, less focus on 3D, VR, etc.&lt;/DIV&gt;</description>
      <pubDate>Fri, 11 Jun 2021 20:00:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/1067526#M7238</guid>
      <dc:creator>KevinMacLeodCAI</dc:creator>
      <dc:date>2021-06-11T20:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolizing Feature Class using related table values</title>
      <link>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/1222962#M7960</link>
      <description>&lt;P&gt;vaya parece imposible que ESRI no solucione este problema el poder realizar simbologia basada en una tabla relacionada a nuestra shape... y que esta cambie conforme va cambiando los valores de la tabla... como una tabla dinámica, pues bien ESRI te comento que en MS Excel es posible y mucho muy sencillo, lo comento para ver si te da un poco de pena y puedes resolverlo para los que usamos ArcGis y no solo prestes atención a la versión Online necesitas resolverlo para los que usamos la versión de escritorio que también contamos... hasta aquí mi reporte.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 18:18:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/symbolizing-feature-class-using-related-table/m-p/1222962#M7960</guid>
      <dc:creator>EdgarOmarGarcíaAguiar</dc:creator>
      <dc:date>2022-10-18T18:18:52Z</dc:date>
    </item>
  </channel>
</rss>

