<?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: Obtain Globalids From Another Table in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/obtain-globalids-from-another-table/m-p/1067767#M43376</link>
    <description>&lt;P&gt;The SQL looks good, though making the 'sde' login the owner isn't best practice (the 'sde' login should be treated as an administrative account, used only when absolutely necessary, and never to own geodata).&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jun 2021 01:48:25 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2021-06-14T01:48:25Z</dc:date>
    <item>
      <title>Obtain Globalids From Another Table</title>
      <link>https://community.esri.com/t5/data-management-questions/obtain-globalids-from-another-table/m-p/1066444#M43368</link>
      <description>&lt;P&gt;I have a standalone table that has an id field named "media_table_id".&amp;nbsp; I also have a feature class that has an id field with those same values and it has a globalid field.&amp;nbsp; I would like to be able to populate my standalone table with the globalid's from the feature class, where the id's match and contains 'tbl_flare_ends" from the layername field in the standalone table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would I need to write an sql to do this?&amp;nbsp; Something like:&amp;nbsp; standalone.media_table_id = feature_class.id_field WHERE standalone.layername = 'tbl_flare_ends' ?&amp;nbsp; Or would I have to do some type of join to populate globalid values that match the criteria?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 16:05:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/obtain-globalids-from-another-table/m-p/1066444#M43368</guid>
      <dc:creator>KellyArmstrong</dc:creator>
      <dc:date>2021-06-09T16:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain Globalids From Another Table</title>
      <link>https://community.esri.com/t5/data-management-questions/obtain-globalids-from-another-table/m-p/1067061#M43370</link>
      <description>&lt;P&gt;In ArcGIS parlance there's a difference between a "GlobalID" and a "GUID". Both utilize UUID field types, but a GlobalID is a primary key ("&lt;SPAN&gt;GlobalIDs uniquely identify a feature or table row in a geodatabase and across geodatabases."), while&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;a GUID is a field that utilizes the native UUID datatype (possibly referencing a GlobalID in a different table).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There are many ways to manifest a GlobalID as a GUID in a table, but the details vary depending on the storage types of the table sources.&amp;nbsp; If both are in a single Enterprise geodatabase instance, the UPDATE is as easy as the supporting RDBMS permits cross-table joins to be. If you're using file geodatabase or a number of different data sources, then the tools that support this are limited (but there are still multiple ways).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Ironically, as good as the UUID type is for distinguishing unique records, it is large and inefficient at that task; integer types make for much more efficient storage and comparison in very-large tables.&lt;/P&gt;&lt;P&gt;How "standalone" is your standalone table? How large are the tables (in rows)? What data source(s) are you using? What have you tried?&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 19:20:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/obtain-globalids-from-another-table/m-p/1067061#M43370</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2021-06-10T19:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain Globalids From Another Table</title>
      <link>https://community.esri.com/t5/data-management-questions/obtain-globalids-from-another-table/m-p/1067099#M43371</link>
      <description>&lt;P&gt;Vince,&lt;/P&gt;&lt;P&gt;Yes, I apologize.&amp;nbsp; I should have stated I want to obtain Globalid's and copy them to another table as GUID's.&lt;/P&gt;&lt;P&gt;Both are in a single Enterprise geodatabase.&amp;nbsp; The table I am looking to populate the GUID field with the globalid's has 55,000 rows...&lt;/P&gt;&lt;P&gt;I have tried creating a query table, but that failed.&amp;nbsp; I have also tried utilizing joins, but when joining the GlobalID field doesn"t come along...&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 20:39:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/obtain-globalids-from-another-table/m-p/1067099#M43371</guid>
      <dc:creator>KellyArmstrong</dc:creator>
      <dc:date>2021-06-10T20:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain Globalids From Another Table</title>
      <link>https://community.esri.com/t5/data-management-questions/obtain-globalids-from-another-table/m-p/1067125#M43372</link>
      <description>&lt;P&gt;Vince,&lt;/P&gt;&lt;P&gt;I am guessing a query table might be the best solution?&amp;nbsp; Something like this?&lt;/P&gt;&lt;P&gt;SELECT sde.sde.tbl_flare_ends.globalid&lt;BR /&gt;FROM sde.sde.tbl_flare_ends INNER JOIN sde.sde.tbl_media2&lt;BR /&gt;ON sde.sde.tbl_flare_ends.originaloid = sde.sde.tbl_media2.media_table_id_integer&lt;BR /&gt;WHERE media_table = 'tbl_flare_ends'&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 21:40:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/obtain-globalids-from-another-table/m-p/1067125#M43372</guid>
      <dc:creator>KellyArmstrong</dc:creator>
      <dc:date>2021-06-10T21:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain Globalids From Another Table</title>
      <link>https://community.esri.com/t5/data-management-questions/obtain-globalids-from-another-table/m-p/1067148#M43373</link>
      <description>&lt;P&gt;I got it to work.&amp;nbsp; This is what I did in pgAdmin:&lt;/P&gt;&lt;P&gt;CREATE OR REPLACE VIEW v_flare_ends_global AS&lt;BR /&gt;SELECT DISTINCT tbl_flare_ends.globalid,&lt;BR /&gt;tbl_media_2.media_table,&lt;BR /&gt;tbl_media_2.media_name,&lt;BR /&gt;tbl_media_2.media_date_added,&lt;BR /&gt;tbl_media_2.media_path,&lt;BR /&gt;tbl_media_2.media_table_id&lt;BR /&gt;FROM tbl_flare_ends&lt;BR /&gt;JOIN tbl_media_2 ON tbl_flare_ends.originaloid = tbl_media_2.media_table_id_integer&lt;BR /&gt;WHERE tbl_media_2.media_table::text = 'tbl_flare_ends'::text;&lt;BR /&gt;&lt;BR /&gt;ALTER TABLE v_flare_ends_global&lt;BR /&gt;OWNER TO sde;&lt;BR /&gt;GRANT ALL ON TABLE v_flare_ends_global TO sde;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 22:33:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/obtain-globalids-from-another-table/m-p/1067148#M43373</guid>
      <dc:creator>KellyArmstrong</dc:creator>
      <dc:date>2021-06-10T22:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain Globalids From Another Table</title>
      <link>https://community.esri.com/t5/data-management-questions/obtain-globalids-from-another-table/m-p/1067767#M43376</link>
      <description>&lt;P&gt;The SQL looks good, though making the 'sde' login the owner isn't best practice (the 'sde' login should be treated as an administrative account, used only when absolutely necessary, and never to own geodata).&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 01:48:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/obtain-globalids-from-another-table/m-p/1067767#M43376</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2021-06-14T01:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain Globalids From Another Table</title>
      <link>https://community.esri.com/t5/data-management-questions/obtain-globalids-from-another-table/m-p/1067899#M43377</link>
      <description>&lt;P&gt;Thank you for that tip.&amp;nbsp; I have decided to create an UPDATE query in pgAdmin instead of creating a query table.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 14:08:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/obtain-globalids-from-another-table/m-p/1067899#M43377</guid>
      <dc:creator>KellyArmstrong</dc:creator>
      <dc:date>2021-06-14T14:08:55Z</dc:date>
    </item>
  </channel>
</rss>

