<?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: Using Select (Analysis) in Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-select-analysis-in-python/m-p/630307#M49073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot. It works!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Mar 2011 17:59:41 GMT</pubDate>
    <dc:creator>abubadruddin</dc:creator>
    <dc:date>2011-03-16T17:59:41Z</dc:date>
    <item>
      <title>Using Select (Analysis) in Python</title>
      <link>https://community.esri.com/t5/python-questions/using-select-analysis-in-python/m-p/630305#M49071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to use SELECT&amp;nbsp; (arcpy.analysis.Select) in Python and it does not work. Here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;arcpy.analysis.Select("USA","Test1",'"STATE_NAME" = "Maine"')&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It gives me the following error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Error executing function. A column was specified that does not exist. A column was specified that does not exist. Failed to execute (Select)" &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Surprisingly, it works if I use a numeric field for the where_clause as shown below!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.analysis.Select("USA","Test1",'"POP2000" &amp;gt; 10000000')&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know what I'm doing wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AZM Badruddin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 17:17:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-select-analysis-in-python/m-p/630305#M49071</guid>
      <dc:creator>abubadruddin</dc:creator>
      <dc:date>2011-03-16T17:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using Select (Analysis) in Python</title>
      <link>https://community.esri.com/t5/python-questions/using-select-analysis-in-python/m-p/630306#M49072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Put single quotes around the text and then surround the entire qry with double quotes, like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;"STATE_NAME = 'Maine'"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;p.s.&amp;nbsp; Apparently, there's more than one way to do it. Simply putting double quotes around "numeric" works also:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;"POP2000 &amp;gt; 10000000"&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 17:44:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-select-analysis-in-python/m-p/630306#M49072</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2011-03-16T17:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using Select (Analysis) in Python</title>
      <link>https://community.esri.com/t5/python-questions/using-select-analysis-in-python/m-p/630307#M49073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot. It works!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 17:59:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-select-analysis-in-python/m-p/630307#M49073</guid>
      <dc:creator>abubadruddin</dc:creator>
      <dc:date>2011-03-16T17:59:41Z</dc:date>
    </item>
  </channel>
</rss>

