<?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: Query Relationship Classes? in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705689#M60</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vote early and vote often....&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/ideas/15991" target="_blank"&gt;https://community.esri.com/ideas/15991&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jun 2021 08:44:18 GMT</pubDate>
    <dc:creator>JoeBorgione</dc:creator>
    <dc:date>2021-06-22T08:44:18Z</dc:date>
    <item>
      <title>Query Relationship Classes?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705676#M47</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't seem to find anything that describes what to do with relationship classes once they are built.&amp;nbsp; Until now, all I can do is identify on the features in ArcMap, then click through the tree structure within the identify window in order to see the related records.&amp;nbsp; That's fine, but what about the ability to query the related features/records?&amp;nbsp; For instance, suppose you had a relationship class built for relating city blocks to the parcels within them.&amp;nbsp; I'd like to build a query to show all parcels that are "related" to a particular city block.&amp;nbsp; I just can't seem to find any guidance on doing these types of queries.&amp;nbsp; Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 18:56:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705676#M47</guid>
      <dc:creator>EricMahaffey1</dc:creator>
      <dc:date>2017-02-27T18:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Query Relationship Classes?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705677#M48</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By query, I assume you referring to SQL queries from Database end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you need to use the Relationship class to query related records? Finding related records&amp;nbsp;can be done through pretty simple queries. If you are facing issues creating SQL queries, maybe provide us a sample of data that you have and the query that you have tried.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct me if I misunderstood the question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check below anyway:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/relationships/benefits-of-relationship-classes.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/relationships/benefits-of-relationship-classes.htm"&gt;Benefits of relationship classes—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 19:10:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705677#M48</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2017-02-27T19:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Query Relationship Classes?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705678#M49</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add the feature class/tables to ArcMap that participate in the relationship class.&amp;nbsp; Open the attribute table of the city blocks feature class/table and perform your selection.&amp;nbsp; At the top left of the attribute table you click on the 'Related Tables' tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/330999_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will list the related tables.&amp;nbsp; Selecting the related table will open the attribute table of the parcels with the selected records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 19:56:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705678#M49</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2017-02-27T19:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Query Relationship Classes?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705679#M50</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to be able to do some basic queries on the related data through ArcMap.&amp;nbsp; Currently when I try to do a definition query, there's no option to access the related data.&amp;nbsp; Basically my question is, once the relationship classes are created, what can we do with them?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 21:01:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705679#M50</guid>
      <dc:creator>EricMahaffey1</dc:creator>
      <dc:date>2017-02-27T21:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Query Relationship Classes?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705680#M51</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jake.&amp;nbsp; I think I'll need to look at it a little more.&amp;nbsp; I think what I'm trying to come up with is a way to run some canned queries based on common values within the related data, and have these queries embedded within a geoprocessing model or python script.&amp;nbsp; Then I can attach to a tool, and give the end user some basic query/display capability to look at how the data is related with each other.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 21:06:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705680#M51</guid>
      <dc:creator>EricMahaffey1</dc:creator>
      <dc:date>2017-02-27T21:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Query Relationship Classes?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705681#M52</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are the benefits of relationship classes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/relationships/benefits-of-relationship-classes.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/relationships/benefits-of-relationship-classes.htm"&gt;Benefits of relationship classes—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Web AppBuilder Query Widget allows you to interact with the related info too:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://doc.arcgis.com/en/web-appbuilder/create-apps/widget-query.htm" title="https://doc.arcgis.com/en/web-appbuilder/create-apps/widget-query.htm"&gt;Query widget—Web AppBuilder for ArcGIS | ArcGIS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 21:07:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705681#M52</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2017-02-27T21:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Query Relationship Classes?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705682#M53</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So looking at it a little more, I'm still not finding anything that answers my question.&amp;nbsp; I'm working within ArcGIS Desktop so using a Web App Query Widget won't be an option.&amp;nbsp; For years I've used Select By Attributes, and Definition Queries to parse out different pieces of data that have similar attributes.&amp;nbsp; Why can't these tools reach through a relationship class to all of the data?&amp;nbsp; Going back to my Blocks and Parcels example, suppose there many parcels being owned by a single person.&amp;nbsp; I'd like to select or query out only those parcels (without adding an owner field to parcels and mass populating it with redundant owner names).&amp;nbsp; Or another example would be, I'd like to select/query for all blocks that owner "John Doe" or "Sally Smith" has property in.&amp;nbsp; I hope what I'm saying makes sense, because I'd really like to benefit from the relational data that we're assembling.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 14:04:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705682#M53</guid>
      <dc:creator>EricMahaffey1</dc:creator>
      <dc:date>2017-03-01T14:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Query Relationship Classes?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705683#M54</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Going back to my Blocks and Parcels example, suppose there many parcels being owned by a single person.&amp;nbsp; I'd like to select or query out only those parcels (without adding an owner field to parcels and mass populating it with redundant owner names).&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this example, you would add the parcel feature class and owner table to ArcMap.&amp;nbsp; Perform your select by attribute on the owner table.&amp;nbsp; Open the attribute table of the owner table &amp;gt; click on the 'Related Tables' button &amp;gt; select the relationship class to the Parcel feature class.&amp;nbsp; The parcel feature class attribute table will open with the selected parcels.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 14:14:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705683#M54</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2017-03-01T14:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Query Relationship Classes?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705684#M55</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jake.&amp;nbsp; That works.&amp;nbsp; I'll do some more testing, and maybe come back with some more questions.&amp;nbsp; I appreciate the feedback.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 15:23:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705684#M55</guid>
      <dc:creator>EricMahaffey1</dc:creator>
      <dc:date>2017-03-01T15:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Query Relationship Classes?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705685#M56</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jake,&lt;/P&gt;&lt;P&gt;So I've tinkered with this a bit more, and I'm getting the results I'm looking for by doing selections on the features or geometry, then clicking the relationship class under Related Tables in the Table window.&amp;nbsp; Do you happen to know if this workflow is accessible in Python?&amp;nbsp; Searching for geoprocessing tools within ArcGIS Desktop doesn't yield anything beyond the building of relationship classes.&amp;nbsp; I essentially want to build some tools the allow the user to do some basic querying, and which results in the selection and display of related features/records.&amp;nbsp; The problem is, I have to work within the dekstop environment at the moment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 19:33:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705685#M56</guid>
      <dc:creator>EricMahaffey1</dc:creator>
      <dc:date>2017-03-15T19:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Query Relationship Classes?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705686#M57</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I too have this problem and surprised more folks arent asking for it.&amp;nbsp; If I am understanding Eric's question, what I believe we really want is to be able to access and query a field in a separate table that is defined through a relationship class (or relate) using a SQL expression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if I have parcel table that has physical and economic information (acreage, value, etc.) joined through a common Parcel ID to an owner table that has information on owners (name, etc.).&amp;nbsp; If I "in" the owner table and I want to query owners associated with parcels that are greater than some size (say 5 acres), where parcel size is in the parcel table, it would be nice to do that "programatically" in code use SQL and/or Python rather than doing the query and clicking a button on the interface to select those records.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This functionality was actually available back in the ArcInfo workstation days (using "Info and "Tables" ).&amp;nbsp; Back then you could name a relate, and then access fields in the related table using the relate name similar to example below:&lt;/P&gt;&lt;P&gt;select &amp;lt;relate name&amp;gt;//&amp;lt;related column name&amp;gt; &amp;gt; 5&lt;/P&gt;&lt;P&gt;select ownpar//area_ac &amp;gt; 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this functionality is somehow available now, I would love to know.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 20:17:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705686#M57</guid>
      <dc:creator>NealBanerjee</dc:creator>
      <dc:date>2019-01-08T20:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Query Relationship Classes?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705687#M58</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just found this :&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/thread/88195"&gt;Select Related Records&lt;/A&gt;&amp;nbsp; &amp;nbsp;Dated, but it also links to a gp tool &lt;A href="https://community.esri.com/migrated-users/3241"&gt;Bruce Harold&lt;/A&gt;‌ wrote in '15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd forgotten about the INFO style if relates; brings back memories!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 21:36:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705687#M58</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2019-01-08T21:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Query Relationship Classes?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705688#M59</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually &lt;A href="https://pm.maps.arcgis.com/home/item.html?id=e638afe0695a4ad38388cb8d9b350446"&gt;my tool&lt;/A&gt; was to emulate the KEYFILE selection option in ArcPlot's various selection commands, it doesn't use relates.&amp;nbsp; Somebody can create an Ideas entry and we'll track it.&amp;nbsp; I used to use keyfile selects all the time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 21:49:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705688#M59</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2019-01-08T21:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Query Relationship Classes?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705689#M60</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vote early and vote often....&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/ideas/15991" target="_blank"&gt;https://community.esri.com/ideas/15991&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2021 08:44:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705689#M60</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-06-22T08:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Query Relationship Classes?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705690#M61</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if this would help and i think it should work with both AGOL and ArcPro, I was pleasantly surprised to find and AGOL Python API method that queries related records&amp;nbsp; at&amp;nbsp;&lt;A href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.features.toc.html?highlight=related_records#arcgis.features.FeatureLayerCollection.query_related_records"&gt;https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.features.toc.html?highlight=related_records#arcgis.features.FeatureLayerCollection.query_related_records&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only caveat is one has to sleuth out the relationship id.&amp;nbsp; If any of you how to query the relationship id from the feature layer , I would be grateful if you share with me.&amp;nbsp; I feel the API documentation is lacking in detail very little description is provided and there is scant sample code.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2019 21:03:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/705690#M61</guid>
      <dc:creator>MaazaMekuria</dc:creator>
      <dc:date>2019-06-20T21:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Query Relationship Classes?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/1418407#M9019</link>
      <description>&lt;P&gt;Hilariously, I am now necro-posting here to repeat that this features is desirable for me too. My boss tells me the best way to understand this "missing feature" is that joins and relates and "summarize within" are better tools to use without having to set up a SQL database.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 21:18:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-relationship-classes/m-p/1418407#M9019</guid>
      <dc:creator>Cmyers_lawrencks</dc:creator>
      <dc:date>2024-05-02T21:18:07Z</dc:date>
    </item>
  </channel>
</rss>

