<?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 Subqueries with branch versioned data in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/subqueries-with-branch-versioned-data/m-p/1715130#M103985</link>
    <description>&lt;P&gt;I have a "Pole" point feature class with a related "SignsParksRec" table to store signs on each pole. I created a definition query in the pole feature class in Pro so that only the poles that had a sign in a particular category would display. My query:&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;FacilityID IN (SELECT Pole_ID FROM SignParksRec WHERE bannercategory IS NOT NULL)&lt;/LI-CODE&gt;&lt;P&gt;The definition query validates, but when I apply it, there are five poles that do not meet the query and still display.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've read the &lt;A href="https://doc.esri.com/en/arcgis-pro/latest/help/mapping/navigation/sql-reference-for-elements-used-in-query-expressions.html#D9F" target="_self"&gt;documentation on subqueries&lt;/A&gt;, but I wonder if I'm running into trouble because the data sources are branch versioned? I know when I do query layers, I have to add where clauses to only return the most recent record and not the archived ones.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jul 2026 20:08:44 GMT</pubDate>
    <dc:creator>AmyRoustCoL</dc:creator>
    <dc:date>2026-07-17T20:08:44Z</dc:date>
    <item>
      <title>Subqueries with branch versioned data</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/subqueries-with-branch-versioned-data/m-p/1715130#M103985</link>
      <description>&lt;P&gt;I have a "Pole" point feature class with a related "SignsParksRec" table to store signs on each pole. I created a definition query in the pole feature class in Pro so that only the poles that had a sign in a particular category would display. My query:&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;FacilityID IN (SELECT Pole_ID FROM SignParksRec WHERE bannercategory IS NOT NULL)&lt;/LI-CODE&gt;&lt;P&gt;The definition query validates, but when I apply it, there are five poles that do not meet the query and still display.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've read the &lt;A href="https://doc.esri.com/en/arcgis-pro/latest/help/mapping/navigation/sql-reference-for-elements-used-in-query-expressions.html#D9F" target="_self"&gt;documentation on subqueries&lt;/A&gt;, but I wonder if I'm running into trouble because the data sources are branch versioned? I know when I do query layers, I have to add where clauses to only return the most recent record and not the archived ones.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2026 20:08:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/subqueries-with-branch-versioned-data/m-p/1715130#M103985</guid>
      <dc:creator>AmyRoustCoL</dc:creator>
      <dc:date>2026-07-17T20:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Subqueries with branch versioned data</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/subqueries-with-branch-versioned-data/m-p/1715322#M103997</link>
      <description>&lt;P&gt;At the simplest level, are you sure&amp;nbsp;bannercategory is actually &amp;lt;Null&amp;gt; in the case of the poles that are showing, but that you believe have no assigned category? Recall, that '' or ' ' is not the same as NULL (the absence of a value).&amp;nbsp;&lt;SPAN&gt;In ArcGIS Pro, you can set a field’s value to&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;null&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;using the&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Calculate Field&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;tool, provided the field is nullable and stored in a geodatabase. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To set a field to &amp;lt;NULL&amp;gt; you can enter the text None in the&amp;nbsp;&lt;EM&gt;Expression&lt;/EM&gt;&amp;nbsp;box.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2026 16:48:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/subqueries-with-branch-versioned-data/m-p/1715322#M103997</guid>
      <dc:creator>RichardDaniels</dc:creator>
      <dc:date>2026-07-20T16:48:43Z</dc:date>
    </item>
  </channel>
</rss>

