<?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 iterators for sql expression in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/using-iterators-for-sql-expression/m-p/588107#M19474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Modelbuilder allows to make a list of expression, so I've managed to get many expressions (as parameters) and execute the query accordingly. This works fine. Now I'd like to join each table with a layer (grids1.lyr) that will eventually give me different layers as output, for example, QueryTable A/B/C (join field: X) -&amp;nbsp; Layer Name: grids1.lyr (join field: X) --&amp;gt; output layers: gridsA, gridsB, gridsC. I believe I have to use "For Iterators" to achieve this but I couldn't get it to work. Can anyone assist me please? Here's the model I created (without the for iterator): &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]12611[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sarbajit.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Mar 2012 21:32:06 GMT</pubDate>
    <dc:creator>sarbajitgurung</dc:creator>
    <dc:date>2012-03-12T21:32:06Z</dc:date>
    <item>
      <title>using iterators for sql expression</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-iterators-for-sql-expression/m-p/588106#M19473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In modelbuilder, I have "make query table" tool which relies on sql expression to query table and output a table. There are many possibilities of the sql expression so I have made it a model parameter. Now I'd like to create an iterator so that each time the expression changes, a new table is created in my workspace. Does anyone know how to do this. I've attached the model herewith. [ATTACH=CONFIG]12558[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be greatly appreciated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sarbajit.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 16:11:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-iterators-for-sql-expression/m-p/588106#M19473</guid>
      <dc:creator>sarbajitgurung</dc:creator>
      <dc:date>2012-03-09T16:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: using iterators for sql expression</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-iterators-for-sql-expression/m-p/588107#M19474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Modelbuilder allows to make a list of expression, so I've managed to get many expressions (as parameters) and execute the query accordingly. This works fine. Now I'd like to join each table with a layer (grids1.lyr) that will eventually give me different layers as output, for example, QueryTable A/B/C (join field: X) -&amp;nbsp; Layer Name: grids1.lyr (join field: X) --&amp;gt; output layers: gridsA, gridsB, gridsC. I believe I have to use "For Iterators" to achieve this but I couldn't get it to work. Can anyone assist me please? Here's the model I created (without the for iterator): &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]12611[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sarbajit.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2012 21:32:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-iterators-for-sql-expression/m-p/588107#M19474</guid>
      <dc:creator>sarbajitgurung</dc:creator>
      <dc:date>2012-03-12T21:32:06Z</dc:date>
    </item>
  </channel>
</rss>

