<?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 Model Builder - Make Query Table expression in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-make-query-table-expression/m-p/609532#M20241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am working on a model that uses the 'Make Query Table' Tool as the first step in the workflow.&amp;nbsp;&amp;nbsp; There are 3 fields from the input table being used in the query expression, which I have set up as model parameters so that users can define the query. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created in the model three string variables, called SelectVar1, SelectVar2 and SelectVar3.&amp;nbsp; These are model parameters and are connected to the Make Query Table as 'preconditions'.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Within the Make Query Table tool dialog, the Expression is defined as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Var1" = %SelectVar1% AND "Var2" = %SelectVar2% AND "Var3" = %SelectVar3%&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is working fine; whatever values are provided for the parameters are plugged in to the query.&amp;nbsp; However, there are limitations with this approach.&amp;nbsp; Specificly, only 1 value is allowed per variable, and all 3 variables are required for the query to work.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What if I want the query to be a bit more flexible with the query inputs?&amp;nbsp; For example, query multiple values from a single variable, or query based on one variable but not the others?&amp;nbsp; Ideally, I would like users running the model to be presented with a list of possible values for each variable, and let them click check boxes to choose which values to query for.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody have any thoughts on how this might be accomplished?&amp;nbsp; Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jun 2014 01:15:35 GMT</pubDate>
    <dc:creator>BryanDieter</dc:creator>
    <dc:date>2014-06-17T01:15:35Z</dc:date>
    <item>
      <title>Model Builder - Make Query Table expression</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-make-query-table-expression/m-p/609532#M20241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am working on a model that uses the 'Make Query Table' Tool as the first step in the workflow.&amp;nbsp;&amp;nbsp; There are 3 fields from the input table being used in the query expression, which I have set up as model parameters so that users can define the query. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created in the model three string variables, called SelectVar1, SelectVar2 and SelectVar3.&amp;nbsp; These are model parameters and are connected to the Make Query Table as 'preconditions'.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Within the Make Query Table tool dialog, the Expression is defined as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Var1" = %SelectVar1% AND "Var2" = %SelectVar2% AND "Var3" = %SelectVar3%&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is working fine; whatever values are provided for the parameters are plugged in to the query.&amp;nbsp; However, there are limitations with this approach.&amp;nbsp; Specificly, only 1 value is allowed per variable, and all 3 variables are required for the query to work.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What if I want the query to be a bit more flexible with the query inputs?&amp;nbsp; For example, query multiple values from a single variable, or query based on one variable but not the others?&amp;nbsp; Ideally, I would like users running the model to be presented with a list of possible values for each variable, and let them click check boxes to choose which values to query for.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody have any thoughts on how this might be accomplished?&amp;nbsp; Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 01:15:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-make-query-table-expression/m-p/609532#M20241</guid>
      <dc:creator>BryanDieter</dc:creator>
      <dc:date>2014-06-17T01:15:35Z</dc:date>
    </item>
  </channel>
</rss>

