<?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: Recover domains with sql query in a postgresql geodatabase in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/recover-domains-with-sql-query-in-a-postgresql/m-p/1236776#M8066</link>
    <description>&lt;P&gt;It's a few years now, but thank you for sharing the answer to your own question Carlos.&lt;BR /&gt;&lt;BR /&gt;I came across it looking for a postgres equivalent for these examples in the documentation which are only given for Oracle and MySQL:,&amp;nbsp; &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/example-resolving-domain-codes-to-description-values.htm" target="_self"&gt;Example: Resolving domain codes to description values using SQL&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2022 13:59:26 GMT</pubDate>
    <dc:creator>AndrewKesterton</dc:creator>
    <dc:date>2022-12-01T13:59:26Z</dc:date>
    <item>
      <title>Recover domains with sql query in a postgresql geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/recover-domains-with-sql-query-in-a-postgresql/m-p/765471#M629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: #212121;"&gt;Hi, I need to create this Oracle script in Postgresql, I do not have experience in xml and I need to list all the domains in a query, but in a Postgresql geodatabase. The query below it works in a Oracle Geodatabase. Thanks.&amp;nbsp; Carlos Rodriguez&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT items.Name NOMBRE_DOMINIO,&lt;BR /&gt; itemtypes.Name TIPO_DOMINIO,&lt;BR /&gt; EXTRACTVALUE (CodedValues.COLUMN_VALUE, 'CodedValue/Code') AS CODIGO_DOMINIO,&lt;BR /&gt; EXTRACTVALUE (CodedValues.COLUMN_VALUE, 'CodedValue/Name') AS&amp;nbsp;DESCRIPCION_DOMINIO&lt;BR /&gt;FROM SDE.GDB_ITEMS_VW items INNER JOIN SDE.GDB_ITEMTYPES itemtypes&lt;BR /&gt; ON items.TYPE = itemtypes.UUID,&lt;BR /&gt; TABLE (XMLSEQUENCE (XMLType (Definition).EXTRACT ('/GPCodedValueDomain2/CodedValues/CodedValue'))) CodedValue&lt;BR /&gt;WHERE itemtypes.Name IN ('Coded Value Domain', 'Range Domain');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 00:06:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/recover-domains-with-sql-query-in-a-postgresql/m-p/765471#M629</guid>
      <dc:creator>Carlos_AlfredoRodriguez</dc:creator>
      <dc:date>2018-08-17T00:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Recover domains with sql query in a postgresql geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/recover-domains-with-sql-query-in-a-postgresql/m-p/765472#M630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN lang="en"&gt;It's work with this script:
SELECT name as domain_name, 
unnest(CAST(xpath('//CodedValue/Name/text()',definition) AS text)::text[]) AS description,
unnest(CAST(xpath('//CodedValue/Code/text()',definition) AS text)::text[]) AS code
from sde.gdb_items


&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:30:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/recover-domains-with-sql-query-in-a-postgresql/m-p/765472#M630</guid>
      <dc:creator>Carlos_AlfredoRodriguez</dc:creator>
      <dc:date>2021-12-12T08:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Recover domains with sql query in a postgresql geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/recover-domains-with-sql-query-in-a-postgresql/m-p/1236776#M8066</link>
      <description>&lt;P&gt;It's a few years now, but thank you for sharing the answer to your own question Carlos.&lt;BR /&gt;&lt;BR /&gt;I came across it looking for a postgres equivalent for these examples in the documentation which are only given for Oracle and MySQL:,&amp;nbsp; &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/example-resolving-domain-codes-to-description-values.htm" target="_self"&gt;Example: Resolving domain codes to description values using SQL&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 13:59:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/recover-domains-with-sql-query-in-a-postgresql/m-p/1236776#M8066</guid>
      <dc:creator>AndrewKesterton</dc:creator>
      <dc:date>2022-12-01T13:59:26Z</dc:date>
    </item>
  </channel>
</rss>

