<?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 How to build a SQL expression in Python in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/how-to-build-a-sql-expression-in-python/m-p/416208#M14069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In light of ArcGIS Server not recognizing the "Query Builder" wizard when using the Select By Attributes tool, I'm wondering if there is a way to manually construct the Query Builder?&amp;nbsp; So for instance, (see attached picture) based on the user first selecting which feature layer they want to run query against, a second dropdown list would then show All the Attributes associated with that feature layer.&amp;nbsp; A third dropdown list would then contain the values from which attribute the user chose.&amp;nbsp; So for example, If I wanted to run this Query "Active" = 'N' on the Wells layer.&amp;nbsp; Does anyone have any python to get me started here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;many thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Oct 2010 18:51:39 GMT</pubDate>
    <dc:creator>JoshV</dc:creator>
    <dc:date>2010-10-05T18:51:39Z</dc:date>
    <item>
      <title>How to build a SQL expression in Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-build-a-sql-expression-in-python/m-p/416208#M14069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In light of ArcGIS Server not recognizing the "Query Builder" wizard when using the Select By Attributes tool, I'm wondering if there is a way to manually construct the Query Builder?&amp;nbsp; So for instance, (see attached picture) based on the user first selecting which feature layer they want to run query against, a second dropdown list would then show All the Attributes associated with that feature layer.&amp;nbsp; A third dropdown list would then contain the values from which attribute the user chose.&amp;nbsp; So for example, If I wanted to run this Query "Active" = 'N' on the Wells layer.&amp;nbsp; Does anyone have any python to get me started here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;many thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 18:51:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-build-a-sql-expression-in-python/m-p/416208#M14069</guid>
      <dc:creator>JoshV</dc:creator>
      <dc:date>2010-10-05T18:51:39Z</dc:date>
    </item>
  </channel>
</rss>

