<?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 Select by Attribute where field1 attribute equals field2 and field3 attributes in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attribute-where-field1-attribute-equals/m-p/1271306#M67134</link>
    <description>&lt;P&gt;In short, below is a query in SQL Server that works and I want to run something similar in ArcGIS Pro.&amp;nbsp; I don't want to use Field Calculator and add another field.&amp;nbsp; Can it be done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT &amp;nbsp;[STREETNAME], [street], [st_type]&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM [db].[dbo].[ADDRESSES]&lt;/P&gt;&lt;P&gt;&amp;nbsp; where STREETNAME = (street + ' ' + st_type)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the following in the Select By Attributes dialog box just says the expression has invalid syntax:&lt;/P&gt;&lt;P&gt;STREETNAME = street + ' ' + st_type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other efforts include:&lt;/P&gt;&lt;P&gt;STREETNAME = street &amp;amp; ' ' &amp;amp; st_type&lt;/P&gt;&lt;P&gt;And:&lt;/P&gt;&lt;P&gt;STREETNAME = (street + ' ' + st_type)&lt;/P&gt;&lt;P&gt;I even tried:&lt;/P&gt;&lt;P&gt;STREETNAME = CONCAT(street + ' ' + st_type)&amp;nbsp; - but I think I'm not understanding how to use this properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2023 13:08:15 GMT</pubDate>
    <dc:creator>PLadd</dc:creator>
    <dc:date>2023-03-24T13:08:15Z</dc:date>
    <item>
      <title>Select by Attribute where field1 attribute equals field2 and field3 attributes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attribute-where-field1-attribute-equals/m-p/1271306#M67134</link>
      <description>&lt;P&gt;In short, below is a query in SQL Server that works and I want to run something similar in ArcGIS Pro.&amp;nbsp; I don't want to use Field Calculator and add another field.&amp;nbsp; Can it be done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT &amp;nbsp;[STREETNAME], [street], [st_type]&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM [db].[dbo].[ADDRESSES]&lt;/P&gt;&lt;P&gt;&amp;nbsp; where STREETNAME = (street + ' ' + st_type)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the following in the Select By Attributes dialog box just says the expression has invalid syntax:&lt;/P&gt;&lt;P&gt;STREETNAME = street + ' ' + st_type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other efforts include:&lt;/P&gt;&lt;P&gt;STREETNAME = street &amp;amp; ' ' &amp;amp; st_type&lt;/P&gt;&lt;P&gt;And:&lt;/P&gt;&lt;P&gt;STREETNAME = (street + ' ' + st_type)&lt;/P&gt;&lt;P&gt;I even tried:&lt;/P&gt;&lt;P&gt;STREETNAME = CONCAT(street + ' ' + st_type)&amp;nbsp; - but I think I'm not understanding how to use this properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 13:08:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attribute-where-field1-attribute-equals/m-p/1271306#M67134</guid>
      <dc:creator>PLadd</dc:creator>
      <dc:date>2023-03-24T13:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Attribute where field1 attribute equals field2 and field3 attributes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attribute-where-field1-attribute-equals/m-p/1271315#M67137</link>
      <description>&lt;P&gt;Interesting!&amp;nbsp; The above query actually does work on an enterprise geodatabase in ArcGIS Pro but not on a file geodatabase in ArcGIS Pro.&amp;nbsp; Why is that?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 13:12:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attribute-where-field1-attribute-equals/m-p/1271315#M67137</guid>
      <dc:creator>PLadd</dc:creator>
      <dc:date>2023-03-24T13:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Attribute where field1 attribute equals field2 and field3 attributes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attribute-where-field1-attribute-equals/m-p/1271439#M67159</link>
      <description>&lt;P&gt;Thanks to Rakshanda at ESRI, who was extremely helpful in finding a solution for this issue.&amp;nbsp; I would never have been able to resolve this through Google searches.&lt;/P&gt;&lt;P&gt;In a file geodatabase, in order to query values in field1 that equal the combined values in field2 and field3 AND (I left out this qualifier) include a space in between field2 and field3, you must use the following syntax:&lt;/P&gt;&lt;P&gt;field1 = field2 || ' ' || field3&lt;/P&gt;&lt;P&gt;The character after field2 and before field 3 is the pipe or vertical bar on the keyboard (shift + \).&amp;nbsp; You have to use two on either side of the single quotes.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 17:06:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attribute-where-field1-attribute-equals/m-p/1271439#M67159</guid>
      <dc:creator>PLadd</dc:creator>
      <dc:date>2023-03-24T17:06:37Z</dc:date>
    </item>
  </channel>
</rss>

