<?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: Link &amp;quot;A table&amp;quot; state to version in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/link-quot-a-table-quot-state-to-version/m-p/770218#M918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for the feedback Biraja. So, if I am understanding you correctly your are suggesting something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; lina &lt;SPAN class="keyword token"&gt;as&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;a&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;objectid&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; s&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;lineage_name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; s&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;state_id &lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;a293&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;a&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;join&lt;/SPAN&gt; sde&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;states s &lt;SPAN class="keyword token"&gt;on&lt;/SPAN&gt; s&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;state_id &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;a&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sde_state_id&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
linver &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;select&lt;/SPAN&gt; s&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;state_id&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; s&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;lineage_name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; v&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; sde&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;versions v
&lt;SPAN class="keyword token"&gt;join&lt;/SPAN&gt; sde&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;states s &lt;SPAN class="keyword token"&gt;on&lt;/SPAN&gt; v&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;state_id &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; s&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;state_id&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;select&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; lina
&lt;SPAN class="keyword token"&gt;full&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;outer&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;join&lt;/SPAN&gt; linver &lt;SPAN class="keyword token"&gt;on&lt;/SPAN&gt; lina&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;lineage_name &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; linver&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;lineage_name‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;But what about the rows in the "A" table that do not join to a current version lineage? How do I understand what version they were part of?&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/447625_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 08:35:41 GMT</pubDate>
    <dc:creator>forestknutsen1</dc:creator>
    <dc:date>2021-12-12T08:35:41Z</dc:date>
    <item>
      <title>Link "A table" state to version</title>
      <link>https://community.esri.com/t5/geodatabase-questions/link-quot-a-table-quot-state-to-version/m-p/770216#M916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problematic edit that I can see in the "a tables". How can I find the version linked to this edit with sql in an Oracle system?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot find the state in the sde versions table so it is not the most recent state for the version... But the edit is from yesterday afternoon, so it is not super old.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2019 21:13:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/link-quot-a-table-quot-state-to-version/m-p/770216#M916</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2019-05-10T21:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Link "A table" state to version</title>
      <link>https://community.esri.com/t5/geodatabase-questions/link-quot-a-table-quot-state-to-version/m-p/770217#M917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Forest,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the steps to get the version name or you can write a sql query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Find out state_id for the feature from A table&lt;/P&gt;&lt;P&gt;2. Then look for this state_id in states table , state_lineages table.&lt;/P&gt;&lt;P&gt;3. Get the state_lineages for the feature state_id&lt;/P&gt;&lt;P&gt;4. Similarly get the state_lineages for state_id for versions and compare with state_lineages from step 4 to get the version name for that feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Biraja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 00:56:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/link-quot-a-table-quot-state-to-version/m-p/770217#M917</guid>
      <dc:creator>BirajaNayak</dc:creator>
      <dc:date>2019-05-14T00:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Link "A table" state to version</title>
      <link>https://community.esri.com/t5/geodatabase-questions/link-quot-a-table-quot-state-to-version/m-p/770218#M918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for the feedback Biraja. So, if I am understanding you correctly your are suggesting something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; lina &lt;SPAN class="keyword token"&gt;as&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;a&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;objectid&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; s&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;lineage_name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; s&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;state_id &lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;a293&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;a&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;join&lt;/SPAN&gt; sde&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;states s &lt;SPAN class="keyword token"&gt;on&lt;/SPAN&gt; s&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;state_id &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;a&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sde_state_id&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
linver &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;select&lt;/SPAN&gt; s&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;state_id&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; s&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;lineage_name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; v&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; sde&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;versions v
&lt;SPAN class="keyword token"&gt;join&lt;/SPAN&gt; sde&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;states s &lt;SPAN class="keyword token"&gt;on&lt;/SPAN&gt; v&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;state_id &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; s&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;state_id&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;select&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; lina
&lt;SPAN class="keyword token"&gt;full&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;outer&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;join&lt;/SPAN&gt; linver &lt;SPAN class="keyword token"&gt;on&lt;/SPAN&gt; lina&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;lineage_name &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; linver&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;lineage_name‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;But what about the rows in the "A" table that do not join to a current version lineage? How do I understand what version they were part of?&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/447625_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:35:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/link-quot-a-table-quot-state-to-version/m-p/770218#M918</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2021-12-12T08:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Link "A table" state to version</title>
      <link>https://community.esri.com/t5/geodatabase-questions/link-quot-a-table-quot-state-to-version/m-p/770219#M919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Forrest,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry and not sure what you are&amp;nbsp;trying to ask in the screen capture. I can see few state_id has state_lineages and then you find the versions. There are few state_id does not present in state_lineages table which are orphan or something and hence no version associated. Is that understanding correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Biraja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2019 22:19:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/link-quot-a-table-quot-state-to-version/m-p/770219#M919</guid>
      <dc:creator>BirajaNayak</dc:creator>
      <dc:date>2019-05-15T22:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Link "A table" state to version</title>
      <link>https://community.esri.com/t5/geodatabase-questions/link-quot-a-table-quot-state-to-version/m-p/770220#M920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Biraja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The screen grab is the results of the sql query. And yes your understanding is correct. Is there a way to trace back the states/lineage to find what version the edit was made in for the rows that don't join with the above sql? Or maybe this is just how sde versioning works and there is no way back?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This came up for us because we had some custom code looking at all of the values in the "A" table of a feature class and then blowing up on a bad value (yes the code is of poor quality and should be fixed). So, I wanted to find out the version the bad edit was made in. But I was unable to join it to a version with the above sql as the state/lineage of the version had moved on from the "A" row state/lineage... in the end I was able to track down the version by talking to users.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2019 00:16:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/link-quot-a-table-quot-state-to-version/m-p/770220#M920</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2019-05-16T00:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Link "A table" state to version</title>
      <link>https://community.esri.com/t5/geodatabase-questions/link-quot-a-table-quot-state-to-version/m-p/770221#M921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please&amp;nbsp;&amp;nbsp;compress geodatabase and then run the query and let us know if you still find the same issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 00:52:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/link-quot-a-table-quot-state-to-version/m-p/770221#M921</guid>
      <dc:creator>BirajaNayak</dc:creator>
      <dc:date>2019-05-17T00:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Link "A table" state to version</title>
      <link>https://community.esri.com/t5/geodatabase-questions/link-quot-a-table-quot-state-to-version/m-p/770222#M922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, I tested this in the dev environment and as expected all rows now join to a version. We can see this in our user complaints as well. After each compress, the custom code would start to work again. And I could go in and see the that the offending "A" rows that did not join to a version had been removed by the compress operation. So, all working as expected with the compress.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get the version of the rows that don't join with the above sql before they are compressed away? Or is this something that sde just does not support?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2019 18:14:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/link-quot-a-table-quot-state-to-version/m-p/770222#M922</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2019-05-20T18:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Link "A table" state to version</title>
      <link>https://community.esri.com/t5/geodatabase-questions/link-quot-a-table-quot-state-to-version/m-p/770223#M923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Forest,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an expected behavior or you can say by design. When you start edit, for each edit, one state_id created and referenced in state_lineages. Once you save or do reconcile and post, edits are moved to a new state_id and hence previous state_ids are orphaned or unreferenced. Compress helps to&amp;nbsp;remove unreferenced states and their associated delta table rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clarifies your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Biraja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 17:17:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/link-quot-a-table-quot-state-to-version/m-p/770223#M923</guid>
      <dc:creator>BirajaNayak</dc:creator>
      <dc:date>2019-05-21T17:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Link "A table" state to version</title>
      <link>https://community.esri.com/t5/geodatabase-questions/link-quot-a-table-quot-state-to-version/m-p/770224#M924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! Thanks for clearing this up for me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 18:48:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/link-quot-a-table-quot-state-to-version/m-p/770224#M924</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2019-05-21T18:48:40Z</dc:date>
    </item>
  </channel>
</rss>

