<?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 Query SQL for CV Domains assigned to Feature Classes in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/query-sql-for-cv-domains-assigned-to-feature/m-p/1060482#M7210</link>
    <description>&lt;P&gt;In cleaning up our long list of cv domains in our 5 geodatabases, we wanted a quick way to list the domains and what feature class(es) they were assigned to.&amp;nbsp; I searched online but didn't find anything, so we came up with this little query to list our feature classes with associated domains.&amp;nbsp; No question - just sharing.&amp;nbsp; Hope this can help someone in the future.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000FF"&gt;SELECT &lt;FONT color="#000000"&gt;I.&lt;/FONT&gt;Name as&lt;/FONT&gt; "CV Domain Name", &lt;FONT color="#0000FF"&gt;&lt;FONT color="#000000"&gt;I.&lt;/FONT&gt;Type&lt;/FONT&gt;, RI.&lt;FONT color="#0000FF"&gt;Name as&lt;/FONT&gt; "Feature Class Name"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp;FROM&lt;/FONT&gt; [GDBName].[sde].[GDB_ITEMS] &lt;FONT color="#0000FF"&gt;as&lt;/FONT&gt; I&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Left Outer Join &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (&lt;FONT color="#0000FF"&gt;SELECT&lt;/FONT&gt; I.&lt;FONT color="#0000FF"&gt;Name&lt;/FONT&gt;, OriginID, DestID&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; FROM&lt;/FONT&gt; [GDBName].[sde].[GDB_ITEMRELATIONSHIPS] &lt;FONT color="#0000FF"&gt;as&lt;/FONT&gt; R&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Inner Join [GDBName].[sde].[GDB_ITEMS] &lt;FONT color="#0000FF"&gt;as&lt;/FONT&gt; I&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;On&lt;/FONT&gt; r.OriginID = I.UUID) &lt;FONT color="#0000FF"&gt;as&lt;/FONT&gt; RI &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;On&lt;/FONT&gt; I.UUID = RI.DestID&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000FF"&gt;where&lt;/FONT&gt; i.&lt;FONT color="#0000FF"&gt;Type&lt;/FONT&gt; = &lt;FONT color="#FF0000"&gt;'8C368B12-A12E-4C7E-9638-C9C64E69E98F'&lt;/FONT&gt; &lt;FONT color="#339966"&gt;--This Type is Coded Value Domain&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000FF"&gt;Order by&lt;/FONT&gt; I.&lt;FONT color="#0000FF"&gt;Name&lt;/FONT&gt;, RI.&lt;FONT color="#0000FF"&gt;Name&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Fri, 21 May 2021 16:17:22 GMT</pubDate>
    <dc:creator>ThomasKonzel</dc:creator>
    <dc:date>2021-05-21T16:17:22Z</dc:date>
    <item>
      <title>Query SQL for CV Domains assigned to Feature Classes</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-sql-for-cv-domains-assigned-to-feature/m-p/1060482#M7210</link>
      <description>&lt;P&gt;In cleaning up our long list of cv domains in our 5 geodatabases, we wanted a quick way to list the domains and what feature class(es) they were assigned to.&amp;nbsp; I searched online but didn't find anything, so we came up with this little query to list our feature classes with associated domains.&amp;nbsp; No question - just sharing.&amp;nbsp; Hope this can help someone in the future.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000FF"&gt;SELECT &lt;FONT color="#000000"&gt;I.&lt;/FONT&gt;Name as&lt;/FONT&gt; "CV Domain Name", &lt;FONT color="#0000FF"&gt;&lt;FONT color="#000000"&gt;I.&lt;/FONT&gt;Type&lt;/FONT&gt;, RI.&lt;FONT color="#0000FF"&gt;Name as&lt;/FONT&gt; "Feature Class Name"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp;FROM&lt;/FONT&gt; [GDBName].[sde].[GDB_ITEMS] &lt;FONT color="#0000FF"&gt;as&lt;/FONT&gt; I&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Left Outer Join &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (&lt;FONT color="#0000FF"&gt;SELECT&lt;/FONT&gt; I.&lt;FONT color="#0000FF"&gt;Name&lt;/FONT&gt;, OriginID, DestID&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; FROM&lt;/FONT&gt; [GDBName].[sde].[GDB_ITEMRELATIONSHIPS] &lt;FONT color="#0000FF"&gt;as&lt;/FONT&gt; R&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Inner Join [GDBName].[sde].[GDB_ITEMS] &lt;FONT color="#0000FF"&gt;as&lt;/FONT&gt; I&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;On&lt;/FONT&gt; r.OriginID = I.UUID) &lt;FONT color="#0000FF"&gt;as&lt;/FONT&gt; RI &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;On&lt;/FONT&gt; I.UUID = RI.DestID&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000FF"&gt;where&lt;/FONT&gt; i.&lt;FONT color="#0000FF"&gt;Type&lt;/FONT&gt; = &lt;FONT color="#FF0000"&gt;'8C368B12-A12E-4C7E-9638-C9C64E69E98F'&lt;/FONT&gt; &lt;FONT color="#339966"&gt;--This Type is Coded Value Domain&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000FF"&gt;Order by&lt;/FONT&gt; I.&lt;FONT color="#0000FF"&gt;Name&lt;/FONT&gt;, RI.&lt;FONT color="#0000FF"&gt;Name&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 21 May 2021 16:17:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-sql-for-cv-domains-assigned-to-feature/m-p/1060482#M7210</guid>
      <dc:creator>ThomasKonzel</dc:creator>
      <dc:date>2021-05-21T16:17:22Z</dc:date>
    </item>
  </channel>
</rss>

