<?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: query in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/query/m-p/634501#M28205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be to select by attribute&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2020 16:38:07 GMT</pubDate>
    <dc:creator>CrystalCraig</dc:creator>
    <dc:date>2020-04-28T16:38:07Z</dc:date>
    <item>
      <title>query</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/query/m-p/634498#M28202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using ArcGIS Pro and have a list of APNs to Query. I did the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; color: gray;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;APN&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: gray;"&gt;"=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: red;"&gt;'186250009'&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: #0070c0;"&gt;Or&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: gray;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;APN&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: gray;"&gt;"=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: red;"&gt;'186250013'&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: #0070c0;"&gt;Or&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: gray;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;APN&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: gray;"&gt;"=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;‘&lt;/SPAN&gt;&lt;STRONG style="color: maroon; font-size: 12.0pt; "&gt;186250007&lt;/STRONG&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;’&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: #0070c0;"&gt;Or&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: gray;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;APN&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: gray;"&gt;"=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;‘&lt;/SPAN&gt;&lt;STRONG style="color: maroon; font-size: 12.0pt; "&gt;186250005&lt;/STRONG&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;’&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: #0070c0;"&gt;Or&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: gray;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;APN&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: gray;"&gt;"=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;‘&lt;/SPAN&gt;&lt;STRONG style="color: maroon; font-size: 12.0pt; "&gt;186250004&lt;/STRONG&gt;&lt;SPAN style="font-size: 12.0pt; color: #0070c0;"&gt;Or&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: gray;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;APN&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: gray;"&gt;"=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;‘&lt;/SPAN&gt;&lt;STRONG style="color: maroon; font-size: 12.0pt; "&gt;186250003&lt;/STRONG&gt;&lt;SPAN style="font-size: 12.0pt; color: #0070c0;"&gt;Or&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: gray;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;APN&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: gray;"&gt;"=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;‘&lt;/SPAN&gt;&lt;STRONG style="color: maroon; font-size: 12.0pt; "&gt;186260020&lt;/STRONG&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;’&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: #0070c0;"&gt;Or&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: gray;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;APN&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: gray;"&gt;"=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;‘&lt;/SPAN&gt;&lt;STRONG style="color: maroon; font-size: 12.0pt; "&gt;186250002&lt;/STRONG&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;’&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;And it's not working. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;Am I doing something wrong? Do I use "Select by Attributes" and use the SQL or do I open the Attribute table and hit "Calculate" within the Calculate Field and write the expression there.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2020 15:46:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/query/m-p/634498#M28202</guid>
      <dc:creator>CrystalCraig</dc:creator>
      <dc:date>2020-04-28T15:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: query</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/query/m-p/634499#M28203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the query for? is it a select by attribute, definition query etc?&lt;/P&gt;&lt;P&gt;is the APN a number or string? if it's a number get rid of the quotes.&lt;/P&gt;&lt;P&gt;you could also use the IN operator for efficiency:&lt;/P&gt;&lt;P&gt;"APN" IN (12344, 123124, 142442)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2020 16:31:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/query/m-p/634499#M28203</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-04-28T16:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: query</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/query/m-p/634500#M28204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They Query is to select certain parcels, to illustrate just those parcels.&amp;nbsp; I have about 50 of them. I am not sure which route I should go, I usually do it in the "Select Layer by Attributes" but if it's just one or I go in and select the parcels and then make a new layer out of it, but I have parcels that are not all in the same area. I hope this makes sense.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2020 16:36:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/query/m-p/634500#M28204</guid>
      <dc:creator>CrystalCraig</dc:creator>
      <dc:date>2020-04-28T16:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: query</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/query/m-p/634501#M28205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be to select by attribute&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2020 16:38:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/query/m-p/634501#M28205</guid>
      <dc:creator>CrystalCraig</dc:creator>
      <dc:date>2020-04-28T16:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: query</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/query/m-p/634502#M28206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've checked this in pro (don't use it much) and the column names have no quotation now, i'd try that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2020 16:56:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/query/m-p/634502#M28206</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-04-28T16:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: query</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/query/m-p/634503#M28207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you David, I will give it a try.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2020 16:58:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/query/m-p/634503#M28207</guid>
      <dc:creator>CrystalCraig</dc:creator>
      <dc:date>2020-04-28T16:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: query</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/query/m-p/634504#M28208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the right side of my screen capture below, you'll see how I just constructed a query for parcel ids (ours are of text type to). In the&amp;nbsp; select by attribute dialog, I just clicked on values; notice there are no quotes there.&amp;nbsp; It took me quite a while to get used to that with ArcGIS Pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you look at the history/details pane on the left side of the image, you'll notice the quotes around the values.&amp;nbsp; It might be&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="490247" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/490247_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Switching to the SQl view (see below) notice how the expression is written.&amp;nbsp; Could it be that your syntax without spaces are giving you the problem? Notice to the lack of quotes around the field name (parcel_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="490253" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/490253_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2020 17:27:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/query/m-p/634504#M28208</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-04-28T17:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: query</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/query/m-p/634505#M28209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ArcGIS Pro, and in ArcGIS Desktop for quite a few years, the names of file geodatabase fields can be double quoted or not.&amp;nbsp; Double quotes used to be required, and although they have been phased out, they are still supported for backwards compatibility.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2020 19:20:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/query/m-p/634505#M28209</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-04-28T19:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: query</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/query/m-p/634506#M28210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regarding:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;And it's not working. &lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It helps to elaborate.&amp;nbsp; What isn't working, specifically?&amp;nbsp; Are you getting an error?&amp;nbsp; If so, what?&amp;nbsp; Are you getting unexpected results?&amp;nbsp; If so, what are you expecting and what are you getting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In terms of overall approach, I agree with &lt;A href="https://community.esri.com/migrated-users/390241"&gt;David Pike&lt;/A&gt;‌ in that you should use the SQL IN operator:&lt;/P&gt;&lt;PRE class="line-numbers language-sql"&gt;&lt;CODE&gt;APN &lt;SPAN class="operator token"&gt;IN&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'186250009'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'186250013'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'186250007'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'186250005'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'186250004'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'186250003'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'186260020'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'186250002'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, in looking at your code you posted, you are using non-ASCII single quotes around some of the APN codes.&amp;nbsp; For SQL queries, the single quotes need to be ASCII single quotes:&amp;nbsp; CHAR(39) .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2020 19:28:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/query/m-p/634506#M28210</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-04-28T19:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: query</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/query/m-p/634507#M28211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Joe, David and Joshua, It was being a pain, this is the expression that worked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 12pt;"&gt;APN &lt;/SPAN&gt;&lt;SPAN style="color: gray; font-size: 12pt;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: red; font-size: 12pt;"&gt;'186250009'&lt;/SPAN&gt; &lt;SPAN style="color: #0070c0; font-size: 12pt;"&gt;Or&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 12pt;"&gt; APN &lt;/SPAN&gt;&lt;SPAN style="color: gray; font-size: 12pt;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: red; font-size: 12pt;"&gt;'186250013'&lt;/SPAN&gt; and etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was also able to save my Expression and also check where it says "Ivert where Clause"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2020 20:31:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/query/m-p/634507#M28211</guid>
      <dc:creator>CrystalCraig</dc:creator>
      <dc:date>2020-04-29T20:31:28Z</dc:date>
    </item>
  </channel>
</rss>

