<?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: &amp;quot;Select by Attributes&amp;quot; query script in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/quot-select-by-attributes-quot-query-script/m-p/66516#M2368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have like 85000 items of which I only need to select around 450.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Sent from myMail app for Android&lt;/P&gt;&lt;P&gt;Saturday, 11 October 2014, 02:02PM -0400 from Dan Patterson &amp;lt;geonet@esri.com&amp;gt;:&lt;/P&gt;&lt;P&gt;GeoNet&lt;/P&gt;&lt;P&gt;"Select by Attributes" query script&lt;/P&gt;&lt;P&gt;reply from&amp;nbsp; Dan Patterson in&amp;nbsp; Ariel Carballo -&amp;nbsp; View the full discussion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Oct 2014 18:05:14 GMT</pubDate>
    <dc:creator>ArielCarballo</dc:creator>
    <dc:date>2014-10-11T18:05:14Z</dc:date>
    <item>
      <title>"Select by Attributes" query script</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/quot-select-by-attributes-quot-query-script/m-p/66513#M2365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to write a script that would extract the contents of a text file (see below)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;123456&lt;/P&gt;&lt;P&gt;234567&lt;/P&gt;&lt;P&gt;890123&lt;/P&gt;&lt;P&gt;567890 &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and would write a script that later could be loaded when using "Select by Attributes" tool (see below).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/legacyfs/online/20284_query.jpg"&gt;&lt;IMG alt="query.jpg" class="image-1 jive-image" height="527" src="https://community.esri.com/legacyfs/online/20284_query.jpg" style="height: auto;" width="386" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. I have a list of hundreds of numbers that I do not want to enter them one by one.&lt;/P&gt;&lt;P&gt;Your help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Oct 2014 15:31:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/quot-select-by-attributes-quot-query-script/m-p/66513#M2365</guid>
      <dc:creator>ArielCarballo</dc:creator>
      <dc:date>2014-10-11T15:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: "Select by Attributes" query script</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/quot-select-by-attributes-quot-query-script/m-p/66514#M2366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rather than select what you do want, it is sometimes quicker to select what you don't want then switch the selection. So to answer this question...if there a range of values that could be used rather than selecting them one at a time.&amp;nbsp; Would a spatial selection work better than an attribute selection... etc etc etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Oct 2014 18:02:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/quot-select-by-attributes-quot-query-script/m-p/66514#M2366</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-10-11T18:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: "Select by Attributes" query script</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/quot-select-by-attributes-quot-query-script/m-p/66515#M2367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ariel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have your list in a text document you could load it in to excel so each value is in separate rows down one column.&lt;/P&gt;&lt;P&gt;then create a formula to create your expression, e.g:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= "FID = '" &amp;amp; A1 &amp;amp; "'" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where A1 is the first cell that contains a value. Copy the formula down so that each row gets populated. If you the copy the values into notepad then copy and paste them into word ( this stops the column being added as a table in word). You can then do a find and replace to add the 'or' segments into your expression. ^p in word is hard return replace this with space OR space. This should give you your full expression that you can then paste into arcmap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Oct 2014 18:03:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/quot-select-by-attributes-quot-query-script/m-p/66515#M2367</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2014-10-11T18:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: "Select by Attributes" query script</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/quot-select-by-attributes-quot-query-script/m-p/66516#M2368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have like 85000 items of which I only need to select around 450.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Sent from myMail app for Android&lt;/P&gt;&lt;P&gt;Saturday, 11 October 2014, 02:02PM -0400 from Dan Patterson &amp;lt;geonet@esri.com&amp;gt;:&lt;/P&gt;&lt;P&gt;GeoNet&lt;/P&gt;&lt;P&gt;"Select by Attributes" query script&lt;/P&gt;&lt;P&gt;reply from&amp;nbsp; Dan Patterson in&amp;nbsp; Ariel Carballo -&amp;nbsp; View the full discussion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Oct 2014 18:05:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/quot-select-by-attributes-quot-query-script/m-p/66516#M2368</guid>
      <dc:creator>ArielCarballo</dc:creator>
      <dc:date>2014-10-11T18:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: "Select by Attributes" query script</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/quot-select-by-attributes-quot-query-script/m-p/66517#M2369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anthony,&lt;/P&gt;&lt;P&gt;Thanks for your prompt response, I'll try it.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Sent from myMail app for Android&lt;/P&gt;&lt;P&gt;Saturday, 11 October 2014, 02:04PM -0400 from Anthony Giles &amp;lt;geonet@esri.com&amp;gt;:&lt;/P&gt;&lt;P&gt;GeoNet&lt;/P&gt;&lt;P&gt;"Select by Attributes" query script&lt;/P&gt;&lt;P&gt;reply from&amp;nbsp; Anthony Giles in&amp;nbsp; Ariel Carballo -&amp;nbsp; View the full discussion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Oct 2014 18:08:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/quot-select-by-attributes-quot-query-script/m-p/66517#M2369</guid>
      <dc:creator>ArielCarballo</dc:creator>
      <dc:date>2014-10-11T18:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: "Select by Attributes" query script</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/quot-select-by-attributes-quot-query-script/m-p/66518#M2370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked perfectly!! Thanks a lot!!&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Sent from myMail app for Android&lt;/P&gt;&lt;P&gt;Saturday, 11 October 2014, 02:04PM -0400 from Anthony Giles &amp;lt;geonet@esri.com&amp;gt;:&lt;/P&gt;&lt;P&gt;GeoNet&lt;/P&gt;&lt;P&gt;"Select by Attributes" query script&lt;/P&gt;&lt;P&gt;reply from&amp;nbsp; Anthony Giles in&amp;nbsp; Ariel Carballo -&amp;nbsp; View the full discussion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 10:13:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/quot-select-by-attributes-quot-query-script/m-p/66518#M2370</guid>
      <dc:creator>ArielCarballo</dc:creator>
      <dc:date>2014-10-15T10:13:44Z</dc:date>
    </item>
  </channel>
</rss>

