<?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 Arcmap Fields Value By SQL Query in ArcMap Questions</title>
    <link>https://community.esri.com/t5/arcmap-questions/arcmap-fields-value-by-sql-query/m-p/1235781#M4171</link>
    <description>&lt;P&gt;Hello, I have a database with fields. Arcmap is connected to the database and the data in the database is updated with an external API. The database is very large and many data types are related. For example: i have a TREEs_in_USA table. and i have a TREEs_REGIONS table.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TREEs_in_USA&lt;/STRONG&gt; table&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{"tree_name":"Tree 1", "region_id":1}&lt;/LI-CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REGIONS_of_TREEs&amp;nbsp;&lt;/STRONG&gt;table&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{"name":"Canada","region_id":1}&lt;/LI-CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These two tables are related by region_id. When I connect the database to arcmap, the regiond_id of the field named "Tree 1" shows as 1. But I want it to show as "Canada". Is there a way for me to make a SQL query while retrieving the field values? This will be difficult when there are thousands of data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 08:02:47 GMT</pubDate>
    <dc:creator>EmrahAydemir</dc:creator>
    <dc:date>2022-11-29T08:02:47Z</dc:date>
    <item>
      <title>Arcmap Fields Value By SQL Query</title>
      <link>https://community.esri.com/t5/arcmap-questions/arcmap-fields-value-by-sql-query/m-p/1235781#M4171</link>
      <description>&lt;P&gt;Hello, I have a database with fields. Arcmap is connected to the database and the data in the database is updated with an external API. The database is very large and many data types are related. For example: i have a TREEs_in_USA table. and i have a TREEs_REGIONS table.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TREEs_in_USA&lt;/STRONG&gt; table&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{"tree_name":"Tree 1", "region_id":1}&lt;/LI-CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REGIONS_of_TREEs&amp;nbsp;&lt;/STRONG&gt;table&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{"name":"Canada","region_id":1}&lt;/LI-CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These two tables are related by region_id. When I connect the database to arcmap, the regiond_id of the field named "Tree 1" shows as 1. But I want it to show as "Canada". Is there a way for me to make a SQL query while retrieving the field values? This will be difficult when there are thousands of data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 08:02:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/arcmap-fields-value-by-sql-query/m-p/1235781#M4171</guid>
      <dc:creator>EmrahAydemir</dc:creator>
      <dc:date>2022-11-29T08:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Arcmap Fields Value By SQL Query</title>
      <link>https://community.esri.com/t5/arcmap-questions/arcmap-fields-value-by-sql-query/m-p/1244119#M4209</link>
      <description>&lt;P&gt;how are you retrieving the values.&amp;nbsp; &amp;nbsp;As labels?&amp;nbsp; &amp;nbsp;If it is as labels, you can use an Advanced expression and If/Then query to label the features with ID 1 as Canada, like this&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Function FindLabel ([region_ID])&lt;BR /&gt;if [region_ID] = 1 then&lt;BR /&gt;FindLabel = "Canada"&lt;BR /&gt;elseif [region_ID] = 2 then&lt;BR /&gt;FindLabel = "Another region"&lt;BR /&gt;if [region_ID] = 3 then&lt;BR /&gt;FindLabel = "Yet another region "&lt;BR /&gt;else&lt;BR /&gt;FindLabel = "No region"&lt;BR /&gt;end if&lt;BR /&gt;End Function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 21:44:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/arcmap-fields-value-by-sql-query/m-p/1244119#M4209</guid>
      <dc:creator>NinaRihn</dc:creator>
      <dc:date>2022-12-28T21:44:20Z</dc:date>
    </item>
  </channel>
</rss>

