<?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 Does it matter if a definition query on a join table is created before or after the join is created? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/does-it-matter-if-a-definition-query-on-a-join/m-p/1306971#M70942</link>
    <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 3.1.2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I have tables A and B. I've joined from A to B; the relationship is 1:M.&lt;/P&gt;&lt;P&gt;I want to apply a definition query to table B. Are there any scenarios where it matters if I create the def query &lt;U&gt;before creating the join&lt;/U&gt; vs. &lt;U&gt;after creating the join&lt;/U&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jul 2023 17:16:27 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2023-07-10T17:16:27Z</dc:date>
    <item>
      <title>Does it matter if a definition query on a join table is created before or after the join is created?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/does-it-matter-if-a-definition-query-on-a-join/m-p/1306971#M70942</link>
      <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 3.1.2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I have tables A and B. I've joined from A to B; the relationship is 1:M.&lt;/P&gt;&lt;P&gt;I want to apply a definition query to table B. Are there any scenarios where it matters if I create the def query &lt;U&gt;before creating the join&lt;/U&gt; vs. &lt;U&gt;after creating the join&lt;/U&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 17:16:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/does-it-matter-if-a-definition-query-on-a-join/m-p/1306971#M70942</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-07-10T17:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Does it matter if definition query on join table is created before or after join?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/does-it-matter-if-a-definition-query-on-a-join/m-p/1306991#M70944</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;&amp;nbsp;been working though the scenarios in 3.2, here is a summary of what I learned from testing.&lt;/P&gt;&lt;P&gt;Two likely scenarios come to mind in 3.1- and in ArcMap that you can mark as a YES:&lt;BR /&gt;1. Subqueries do not work if done before the join on datasources with ".".&amp;nbsp; There are some manual changes needed to fix them after the join.&lt;BR /&gt;2. Definition queries done after the join, remove join will not adjust the query.&amp;nbsp; This is by design at the moment because it is an easy manual task, but a difficult task to code.&lt;BR /&gt;&lt;BR /&gt;In 3.2+ we have improved this.&amp;nbsp; Pro has the ability to hold multiple definition queries on one layer, while keeping just 1 as active.&amp;nbsp; Now we can keep the old definition query prior to the join in an inactive state so users can edit it if needed.&amp;nbsp; Also, fixes to MakeTableView to work with setting definition queries in arcpy make it easy to automate any adjustments.&lt;BR /&gt;&lt;BR /&gt;So, in 3.2 to summarize the behavior:&lt;BR /&gt;1. subqueries and the "IN" operator are now working with the before scenario.&lt;BR /&gt;2. Remove Join will remove the definition query that was added before the join and set the before join definition query back to being active.&amp;nbsp; Any definition query created after the join will be unchanged, but likely invalid and need manual attention.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 16:40:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/does-it-matter-if-a-definition-query-on-a-join/m-p/1306991#M70944</guid>
      <dc:creator>JonathanNeal</dc:creator>
      <dc:date>2023-07-10T16:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Does it matter if definition query on join table is created before or after join?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/does-it-matter-if-a-definition-query-on-a-join/m-p/1306996#M70945</link>
      <description>&lt;P&gt;Also, I added updated doc for these scenarios to Add Join, for 3.2+.&amp;nbsp; Please click the "Feedback on topic" at the bottom of the doc if it is not clear enough in the upcoming release.&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/add-join.htm" target="_blank"&gt;Add Join (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 16:54:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/does-it-matter-if-a-definition-query-on-a-join/m-p/1306996#M70945</guid>
      <dc:creator>JonathanNeal</dc:creator>
      <dc:date>2023-07-10T16:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Does it matter if a definition query on a join table is created before or after the join is created?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/does-it-matter-if-a-definition-query-on-a-join/m-p/1313619#M71559</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/342593"&gt;@JonathanNeal&lt;/a&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 14:30:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/does-it-matter-if-a-definition-query-on-a-join/m-p/1313619#M71559</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-07-31T14:30:50Z</dc:date>
    </item>
  </channel>
</rss>

