<?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: Database View Shows Coded Value, not Human Readable? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/552969#M31325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I would have expected that view to behave as any other geodatabase table&amp;nbsp; behaves &lt;BR /&gt;i.e. - to be geodatabase aware.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But how could it?&amp;nbsp; It is a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;database&lt;/SPAN&gt;&lt;SPAN&gt; view after all. And the coded values are what a SQL user&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;would see from the primary table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; The issue is the ancillary data in domains.&amp;nbsp; Should each view be tailored to join to a virtual &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;table containing the lookup values, in the syntax appropriate to each RDBMS (if the RDBMS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; even supports them)?&amp;nbsp; Should it create new tables associated with each domain column each&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; time a view is created, and join to them?&amp;nbsp; And then what happens if the domain is edited?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Should the command fail if a domain is present?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suspect this hasn't been resolved because the options are all so unattractive.&amp;nbsp; Yet there is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a workaround -- to export the domains to tables and alter the view accordingly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jan 2014 19:59:17 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2014-01-13T19:59:17Z</dc:date>
    <item>
      <title>Database View Shows Coded Value, not Human Readable?</title>
      <link>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/552962#M31318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello!&amp;nbsp; When a geodatabase view references a field to which a coded value domain has been applied, the code, rather than the human readable value, is exposed.&amp;nbsp; Having made extensive use of coded value domains, this makes views useless for my environment.&amp;nbsp; Does anyone know of a workaround?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcSDE1 10.0/SQL Server 2008 R2&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 21:56:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/552962#M31318</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-01-10T21:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Shows Coded Value, not Human Readable?</title>
      <link>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/552963#M31319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello!&amp;nbsp; When a geodatabase view references a field to which a coded value domain has been applied, the code, rather than the human readable value, is exposed.&amp;nbsp; Having made extensive use of coded value domains, this makes views useless for my environment.&amp;nbsp; Does anyone know of a workaround?&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;&lt;BR /&gt;ArcSDE1 10.0/SQL Server 2008 R2&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since domains, AFAIK, are stored in the Geodatabase System Tables as XML, you won't be able to access them directly and use them in your views.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The "quick and dirty" solution is to export your domains to tables using the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//001700000022000000" rel="nofollow" target="_blank"&gt;Domain To Table&lt;/A&gt;&lt;SPAN&gt; tool and than use the resulting tables in a SQL join to modify your "geodatabase views" to display the appropriate "human readable" value. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Assuming you don't update your domains all the time, this should be a manageable workaround once set up.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 22:33:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/552963#M31319</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2014-01-10T22:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Shows Coded Value, not Human Readable?</title>
      <link>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/552964#M31320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I appreciate the feedback, thank you. The suggested workaround isn't a good fit for our environment, due to volume and change rate.&amp;nbsp; Since the human-readable values are invoked in every other situation in which a user views the data, it seems like either an oversight or a bug to ignore them in the context of a view.&amp;nbsp; I will follow-up with Esri and will post here with anything learned.&amp;nbsp; Thanks again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 13:57:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/552964#M31320</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-01-13T13:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Shows Coded Value, not Human Readable?</title>
      <link>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/552965#M31321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Marianne,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As soon as you start defining true &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;database views&lt;/SPAN&gt;&lt;SPAN&gt;, as SQL statements stored at enterprise database level, you are actually leaving the ESRI and geodatabase "realm" of things.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Although it is easy to say that ArcGIS "knows" about these domains in all other situations where geodatabases are accessed through one of the ArcGIS Desktop or Server applications, this is all with ArcGIS "knowing" it is using a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;&lt;STRONG&gt;geo&lt;/STRONG&gt;database&lt;/SPAN&gt;&lt;SPAN&gt;, not an ordinary database without ArcSDE Repository. Hence ArcGIS can extract the necessary information from the table with XML columns storing the domains (the &lt;/SPAN&gt;&lt;STRONG&gt;GDB_ITEMS&lt;/STRONG&gt;&lt;SPAN&gt; table of the ArcSDE / Geodatabase Repository). ArcObjects handles this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you define a database view, versus doing something like creating a layer with Definition Query in ArcMap, even if it accomplished through ArcGIS for Desktop tools and menu options like the new ones added in the 10.x releases, it is stored and managed by the database. The database doesn't "know" about any of the specifics of the geodatabase model, like where the domain information is stored. It also can not "join" the XML column information about the domains automatically to your base tables. And since ArcGIS sees this same database view as any other ordinary view, it won't be able to extract this info either (unless ESRI deviced some elaborate code to still consult the ArcSDE Repository, even for ordinary database views not registered with the geodatabase).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is why the export with the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//001700000022000000"&gt;Domain To Table&lt;/A&gt;&lt;SPAN&gt; tool is necessary.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, ESRI might potentially be able to offer an option to automatically convert domain codes to domain descriptions in a future release by doing an export automatically and modifying the SQL statements on the fly... but this is probably far less easy than it sounds. In the mean time, automating the creation of database views including exported domains using the Domain To Table tools, most likely through Python scripting or ModelBuilder, is probably your best bet.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 16:13:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/552965#M31321</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2014-01-13T16:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Shows Coded Value, not Human Readable?</title>
      <link>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/552966#M31322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;BTW, I have now verified the viability of the solution I wrote in &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/100389-Database-View-Shows-Coded-Value-not-Human-Readable?p=357263&amp;amp;viewfull=1#post357263"&gt;post #2&lt;/A&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I exported a domain as described there, and than modified both an ArcGIS &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00s50000000n000000"&gt;Query Layer&lt;/A&gt;&lt;SPAN&gt;'s SQL statement to incorporate the domain's description, and I also tested modifying the underlying database view's SQL (Warning: don't do both at the same time!) to join the exported domain table using SQL Server Management Studio.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both worked like a charm... the description of the domain nicely replaces the code in both cases.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 17:00:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/552966#M31322</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2014-01-13T17:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Shows Coded Value, not Human Readable?</title>
      <link>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/552967#M31323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, Marco, for the thoughtful response.&amp;nbsp; You clearly describe the distinction between &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;geo&lt;/SPAN&gt;&lt;SPAN&gt;database and conventional database awareness.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since Esri enabled ArcGIS Desktop to create a view (as of 10.1, I believe), I would have expected that view to behave as any other geodatabase table behaves i.e. - to be geodatabase aware.&amp;nbsp; But in this case, it's just a button which performs a non-geodatabase function.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 19:15:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/552967#M31323</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-01-13T19:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Shows Coded Value, not Human Readable?</title>
      <link>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/552968#M31324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Since Esri enabled ArcGIS Desktop to create a view (as of 10.1, I believe), I would have expected that view to behave as any other geodatabase table behaves i.e. - to be geodatabase aware.&amp;nbsp; &lt;STRONG&gt;But in this case, it's just a button which performs a non-geodatabase function.&lt;/STRONG&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Exactly!...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 19:56:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/552968#M31324</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2014-01-13T19:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Shows Coded Value, not Human Readable?</title>
      <link>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/552969#M31325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I would have expected that view to behave as any other geodatabase table&amp;nbsp; behaves &lt;BR /&gt;i.e. - to be geodatabase aware.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But how could it?&amp;nbsp; It is a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;database&lt;/SPAN&gt;&lt;SPAN&gt; view after all. And the coded values are what a SQL user&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;would see from the primary table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; The issue is the ancillary data in domains.&amp;nbsp; Should each view be tailored to join to a virtual &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;table containing the lookup values, in the syntax appropriate to each RDBMS (if the RDBMS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; even supports them)?&amp;nbsp; Should it create new tables associated with each domain column each&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; time a view is created, and join to them?&amp;nbsp; And then what happens if the domain is edited?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Should the command fail if a domain is present?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suspect this hasn't been resolved because the options are all so unattractive.&amp;nbsp; Yet there is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a workaround -- to export the domains to tables and alter the view accordingly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 19:59:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/552969#M31325</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-01-13T19:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Shows Coded Value, not Human Readable?</title>
      <link>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/552970#M31326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah, I see where you're all going.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Create a nightly process by which the domain is written to an SDE geodatabase table, then define the view to include the join of that domain table and the corollary feature class/table.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is a great idea, thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 20:21:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/552970#M31326</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-01-13T20:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Shows Coded Value, not Human Readable?</title>
      <link>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/1088843#M43503</link>
      <description>&lt;P&gt;Since ArcGIS Enterprise / ArcMap 10.6 and ArcGIS Pro 2.7 (please correct my version numbers if I'm incorrect), the user has had the ability to register database views with the geodatabase. Once I register a database view with the geodatabase, I would expect that it has full geodatabase functionality, including displaying domain descriptions instead of values.&lt;/P&gt;&lt;P&gt;Esri Canada technical support pointed us to &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;this example&lt;/A&gt;, which we've tried and it works as expected. However, I would expect that this would be implemented by Esri out-of-the-box.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 13:11:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/1088843#M43503</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-08-13T13:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Shows Coded Value, not Human Readable?</title>
      <link>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/1323980#M44681</link>
      <description>&lt;P&gt;That is a good thought. Although, I'd be worried about the domains being disconnected from the tables in case future changes to the domains occur. XML is a queryable datatype within SQL. For example, in SQL Server, there is &lt;A href="https://learn.microsoft.com/en-us/sql/t-sql/xml/query-method-xml-data-type?view=sql-server-ver16" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt; on how to do it and plenty of examples of &lt;A href="https://www.sqlservercentral.com/forums/topic/inner-join-a-database-table-with-xml-data" target="_blank" rel="noopener"&gt;how to join that XML to a table&lt;/A&gt; in a query. So I would say this should be possible without making static tables of the domains.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 16:31:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/1323980#M44681</guid>
      <dc:creator>DougGreen</dc:creator>
      <dc:date>2023-08-30T16:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Shows Coded Value, not Human Readable?</title>
      <link>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/1324326#M44686</link>
      <description>&lt;P&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/file-geodatabase-views-should-support-domains/idc-p/1314526/highlight/true#M25841" target="_self"&gt;File Geodatabase views should support domains&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our geodatabase is Oracle, not SQL Server.&amp;nbsp;&lt;SPAN&gt;What I do is create individual views to get the domain values (codes and descriptions) for a given domain.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;--This is Oracle-specific SQL. You'll need something different for SQL Server. https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/example-resolving-domain-codes-to-description-values.htm&lt;BR /&gt;&lt;BR /&gt;create or replace view &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;d&lt;/STRONG&gt;&lt;/FONT&gt;_atn_type as&lt;BR /&gt;select      
    cast(rownum as number(38,0)) as rownum_,
    x.code,
    x.description,
    i.name as domain_name
from        
    sde.gdb_items_vw i
cross apply xmltable(
    '/GPCodedValueDomain2/CodedValues/CodedValue' 
    passing xmltype(i.definition)
    columns
        code        varchar2(255) path './Code',
        description varchar2(255) path './Name'
    ) x    
&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;where      
    i.name = 'ATN_TYPE'&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1693488342812.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/79563iCABED372B1512C4F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_0-1693488342812.png" alt="Bud_0-1693488342812.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That works well for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, you could create a view that includes the domain codes/descriptions for ALL coded value domains in the geodatabase, or just for a given owner/user/schema. And include the domain name as a column in the view.&lt;/P&gt;&lt;P&gt;Then, when you want to use a specific domain's values in your FC view, you could join to the domain view, but only include the rows that pertain to the applicable domain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 13:31:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/1324326#M44686</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-08-31T13:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Shows Coded Value, not Human Readable?</title>
      <link>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/1325653#M44690</link>
      <description>&lt;P&gt;The attached python toolbox might help.&amp;nbsp; It contains tools to decode domain values using SQL.&amp;nbsp; The tool is currently SQL Server specific, but could be modified for other db platforms.&amp;nbsp; Basically, it just builds a big SQL statement with a bunch of case statements in it which translate the domain values to human readable text for use in a view.&amp;nbsp; There are two tools which use the same backend code.&amp;nbsp; The first just returns the sql select statement as a string (useful if you are building this into a larger model or tool) and the second uses the select statement to return a query layer.&amp;nbsp; You can always go back and examine the sql via. the source for the feature layer if needed.&amp;nbsp; The code works with layers that are subtyped as well as those that aren't.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 21:54:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/1325653#M44690</guid>
      <dc:creator>AJR</dc:creator>
      <dc:date>2023-09-05T21:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Shows Coded Value, not Human Readable?</title>
      <link>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/1381679#M44961</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have been playing with your script and I see how it could be very useful. Would you mind explaining the best way to go about implementing this into a enterprise database view in Pro?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 16:58:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/1381679#M44961</guid>
      <dc:creator>Wes_S</dc:creator>
      <dc:date>2024-02-13T16:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Shows Coded Value, not Human Readable?</title>
      <link>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/1381693#M44962</link>
      <description>&lt;P&gt;You could build a db view using the select statement by just putting it into a create view statement, something like&lt;/P&gt;&lt;P&gt;create view your_new_view_name as&lt;/P&gt;&lt;P&gt;select .....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the view is then a static pointer to the domain and subtype values as they existed at the time of creation of the view.&amp;nbsp; If you ever change any of the domain values or modify the subtypes, you'll need to drop and re-create the view using an updated sql statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could also use the returned select statement to pass into the Create Database View GP tool and that would achieve the same result as doing it via. sql.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 17:15:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/1381693#M44962</guid>
      <dc:creator>AJR</dc:creator>
      <dc:date>2024-02-13T17:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Database View Shows Coded Value, not Human Readable?</title>
      <link>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/1381816#M44963</link>
      <description>&lt;P&gt;Thank you for the timely response! It helped me implement it right away.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 19:45:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/database-view-shows-coded-value-not-human-readable/m-p/1381816#M44963</guid>
      <dc:creator>Wes_S</dc:creator>
      <dc:date>2024-02-13T19:45:47Z</dc:date>
    </item>
  </channel>
</rss>

