<?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 Layer and Attribute Table contain different values in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/query-layer-and-attribute-table-contain-different/m-p/1476143#M9053</link>
    <description>&lt;OL&gt;&lt;LI&gt;Can you remove the file geodatabase label from this post, since it’s not a file geodatabase? File geodatabases don’t support query layers.&lt;/LI&gt;&lt;LI&gt;What version of SQL Server?&lt;/LI&gt;&lt;LI&gt;What version of ArcGIS Enterprise?&lt;/LI&gt;&lt;LI&gt;What version of Pro?&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Are you sure the field you’ve chosen as the unique ID field is truly unique and doesn’t have nulls?&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Can you clarify what the problem is? Is the RCODE_NO value wrong in the query layer?&lt;/LI&gt;&lt;LI&gt;Can you show us a screenshot of the Fields View in ArcGIS Pro for both the underlying database table and the query layer?&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Tue, 21 May 2024 10:03:26 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2024-05-21T10:03:26Z</dc:date>
    <item>
      <title>Query Layer and Attribute Table contain different values</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-layer-and-attribute-table-contain-different/m-p/1476082#M9052</link>
      <description>&lt;P&gt;Hello, I am trying to work out why when I query a table why I get a different result than what is contained in the attribute table? Field I'm interested in is RCODE_NO, ID is unique, and the SQL query is a simple one:&lt;/P&gt;&lt;P&gt;SELECT PIN, ID, RCODE_NO FROM ArcSDE.GISDBA.City_TPS24New WHERE PIN=123998&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MatthewSmart451_0-1716276302830.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104714i02EE9AA2796647F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MatthewSmart451_0-1716276302830.png" alt="MatthewSmart451_0-1716276302830.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MatthewSmart451_2-1716276426459.png" style="width: 264px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104717iEF158BDF8DEC1447/image-dimensions/264x552?v=v2" width="264" height="552" role="button" title="MatthewSmart451_2-1716276426459.png" alt="MatthewSmart451_2-1716276426459.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MatthewSmart451_1-1716276323444.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104716i23AF715F96DD14C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MatthewSmart451_1-1716276323444.png" alt="MatthewSmart451_1-1716276323444.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I find extremely strange about this is I copied the table into a new Enterprise Geodatabase in Catalog and it seems to work as expected?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MatthewSmart451_7-1716276946660.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104724i5E9078B929AA9D0C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MatthewSmart451_7-1716276946660.png" alt="MatthewSmart451_7-1716276946660.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MatthewSmart451_4-1716276740052.png" style="width: 193px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104721i9F3389E424804466/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MatthewSmart451_4-1716276740052.png" alt="MatthewSmart451_4-1716276740052.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MatthewSmart451_5-1716276780430.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104722iD6D94ED175B5E753/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MatthewSmart451_5-1716276780430.png" alt="MatthewSmart451_5-1716276780430.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly helpful, SQL novice here&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 04:19:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-layer-and-attribute-table-contain-different/m-p/1476082#M9052</guid>
      <dc:creator>MatthewSmart451</dc:creator>
      <dc:date>2024-05-24T04:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Query Layer and Attribute Table contain different values</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-layer-and-attribute-table-contain-different/m-p/1476143#M9053</link>
      <description>&lt;OL&gt;&lt;LI&gt;Can you remove the file geodatabase label from this post, since it’s not a file geodatabase? File geodatabases don’t support query layers.&lt;/LI&gt;&lt;LI&gt;What version of SQL Server?&lt;/LI&gt;&lt;LI&gt;What version of ArcGIS Enterprise?&lt;/LI&gt;&lt;LI&gt;What version of Pro?&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Are you sure the field you’ve chosen as the unique ID field is truly unique and doesn’t have nulls?&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Can you clarify what the problem is? Is the RCODE_NO value wrong in the query layer?&lt;/LI&gt;&lt;LI&gt;Can you show us a screenshot of the Fields View in ArcGIS Pro for both the underlying database table and the query layer?&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 21 May 2024 10:03:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-layer-and-attribute-table-contain-different/m-p/1476143#M9053</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-05-21T10:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Query Layer and Attribute Table contain different values</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-layer-and-attribute-table-contain-different/m-p/1476169#M9054</link>
      <description>&lt;P&gt;I would also ask if the data is versioned?&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 11:15:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-layer-and-attribute-table-contain-different/m-p/1476169#M9054</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2024-05-21T11:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Query Layer and Attribute Table contain different values</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-layer-and-attribute-table-contain-different/m-p/1478176#M9057</link>
      <description>&lt;P&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; Done&lt;BR /&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt; Microsoft SQL Server 2017 14.0.3451.2 (Build 14393: )&lt;BR /&gt;&lt;STRONG&gt;3.&lt;/STRONG&gt; Enterprise 10.8.1&lt;BR /&gt;&lt;STRONG&gt;4.&lt;/STRONG&gt; ArcPro 3.2.2&lt;BR /&gt;&lt;STRONG&gt;5.&lt;/STRONG&gt; Upon closer inspection, no the field is not unique and yes there are nulls.&lt;BR /&gt;&lt;STRONG&gt;6.&lt;/STRONG&gt; The RCODE_NO value in the query layer should be "R60"&lt;BR /&gt;&lt;STRONG&gt;7.&lt;/STRONG&gt; See below (cannot get query layer field views as the option is greyed out):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MatthewSmart451_0-1716531427382.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/105282i42796CB4CB00F0FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MatthewSmart451_0-1716531427382.png" alt="MatthewSmart451_0-1716531427382.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MatthewSmart451_1-1716531445447.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/105283iD141B4628BE04568/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MatthewSmart451_1-1716531445447.png" alt="MatthewSmart451_1-1716531445447.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is the data versioned?&lt;BR /&gt;&lt;/STRONG&gt;Yes, traditionally versioned.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 06:19:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-layer-and-attribute-table-contain-different/m-p/1478176#M9057</guid>
      <dc:creator>MatthewSmart451</dc:creator>
      <dc:date>2024-05-24T06:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Query Layer and Attribute Table contain different values</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-layer-and-attribute-table-contain-different/m-p/1478177#M9058</link>
      <description>&lt;P&gt;Yes, the feature datasets are both versioned (traditional).&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 06:20:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-layer-and-attribute-table-contain-different/m-p/1478177#M9058</guid>
      <dc:creator>MatthewSmart451</dc:creator>
      <dc:date>2024-05-24T06:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Query Layer and Attribute Table contain different values</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-layer-and-attribute-table-contain-different/m-p/1478345#M9059</link>
      <description>&lt;P&gt;My experience is that most query layer problems stem from the unique ID field. Hopefully, if you clean up that field, your issues will go away.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 13:01:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-layer-and-attribute-table-contain-different/m-p/1478345#M9059</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-05-24T13:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Query Layer and Attribute Table contain different values</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-layer-and-attribute-table-contain-different/m-p/1478941#M9068</link>
      <description>&lt;P&gt;Will give that a crack, cheers!&lt;/P&gt;</description>
      <pubDate>Sun, 26 May 2024 23:45:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-layer-and-attribute-table-contain-different/m-p/1478941#M9068</guid>
      <dc:creator>MatthewSmart451</dc:creator>
      <dc:date>2024-05-26T23:45:09Z</dc:date>
    </item>
  </channel>
</rss>

