<?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: where is the table for the Where statement in restaurant model? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/where-is-the-table-for-the-where-statement-in-restaurant-model/m-p/13519808#M30967</link>
    <description>&lt;P&gt;The original sql had priority equal 0. The SQL you created that priority equals 150. The model seems to run perfectly with either value, in fact, with another value. Why was priority included? Is there any way I can see this code? &lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Tee&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2020 20:24:54 GMT</pubDate>
    <dc:creator>tee_hiett</dc:creator>
    <dc:date>2020-01-10T20:24:54Z</dc:date>
    <item>
      <title>where is the table for the Where statement in restaurant model?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/where-is-the-table-for-the-where-statement-in-restaurant-model/m-p/13519803#M30962</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.0.0 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;A id="24756" href="https://answers.flexsim.com/storage/attachments/24756-sql-flexsim.jpg"&gt;sql-flexsim.jpg&lt;/A&gt; &lt;A id="24757" href="https://answers.flexsim.com/storage/attachments/24757-21327-restaurantsample-6.fsm"&gt;21327-restaurantsample-6.fsm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I am studying (and modifying) the FlexSim restaurant sample to learn more about FlexSim. I understand what the Where statement in the Sit activity does but I don't know how to access the source table(s). I would appreciate some direction here. Thanks, Tee&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 17:17:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/where-is-the-table-for-the-where-statement-in-restaurant-model/m-p/13519803#M30962</guid>
      <dc:creator>tee_hiett</dc:creator>
      <dc:date>2020-01-08T17:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: where is the table for the Where statement in restaurant model?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/where-is-the-table-for-the-where-statement-in-restaurant-model/m-p/13519804#M30963</link>
      <description>&lt;P&gt;I'm not sure what you're asking. What do you mean by source tables?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 17:19:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/where-is-the-table-for-the-where-statement-in-restaurant-model/m-p/13519804#M30963</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2020-01-08T17:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: where is the table for the Where statement in restaurant model?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/where-is-the-table-for-the-where-statement-in-restaurant-model/m-p/13519805#M30964</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://answers.flexsim.com/users/812/tee.h.html" nodeid="812"&gt;@Tee Hiett&lt;/A&gt;&lt;/P&gt;&lt;P&gt;TableAndChairs is the group TableAndChairs. If you go to Toolbox &amp;gt; Groups &amp;gt; People &amp;gt; Locations &amp;gt; TableAndChairs You will see all the members of that group that the SQL Statement is drawing from. &lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 17:30:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/where-is-the-table-for-the-where-statement-in-restaurant-model/m-p/13519805#M30964</guid>
      <dc:creator>braydn_t</dc:creator>
      <dc:date>2020-01-08T17:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: where is the table for the Where statement in restaurant model?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/where-is-the-table-for-the-where-statement-in-restaurant-model/m-p/13519806#M30965</link>
      <description>&lt;P&gt;I can see the Global Lists &lt;STRONG&gt;Locations&lt;/STRONG&gt; contains the values for Priority and occupancy that the Where statement needs. How can I see the entire SQL statement? &lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 19:29:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/where-is-the-table-for-the-where-statement-in-restaurant-model/m-p/13519806#M30965</guid>
      <dc:creator>tee_hiett</dc:creator>
      <dc:date>2020-01-08T19:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: where is the table for the Where statement in restaurant model?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/where-is-the-table-for-the-where-statement-in-restaurant-model/m-p/13519807#M30966</link>
      <description>&lt;P&gt;The Location field on the Table location resource is showing the entire SQL statement:&lt;/P&gt;&lt;PRE&gt;WHERE TableAndChairs AND Priority = 0 AND occupancy &amp;gt;= Puller.PartySize ORDER BY occupancy&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1501017iEDBB276DC111C936/image-size/large?v=v2&amp;amp;px=999" title="24774-sql.png" alt="24774-sql.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This model was built last year when the only option for writing a custom query was to write the entire thing yourself in that top field. However, in 20.0 we added two more fields to the resource activities to make it easier to write custom queries. So in 20.0 to get the same effect you would configure the activity like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1501018i6213C971B12A19D6/image-size/large?v=v2&amp;amp;px=999" title="24775-newquery.png" alt="24775-newquery.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here's an updated model where I made that change: &lt;A id="24776" href="https://answers.flexsim.com/storage/attachments/24776-restaurantsample20.fsm"&gt;restaurantsample20.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 00:11:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/where-is-the-table-for-the-where-statement-in-restaurant-model/m-p/13519807#M30966</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2020-01-09T00:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: where is the table for the Where statement in restaurant model?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/where-is-the-table-for-the-where-statement-in-restaurant-model/m-p/13519808#M30967</link>
      <description>&lt;P&gt;The original sql had priority equal 0. The SQL you created that priority equals 150. The model seems to run perfectly with either value, in fact, with another value. Why was priority included? Is there any way I can see this code? &lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Tee&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 20:24:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/where-is-the-table-for-the-where-statement-in-restaurant-model/m-p/13519808#M30967</guid>
      <dc:creator>tee_hiett</dc:creator>
      <dc:date>2020-01-10T20:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: where is the table for the Where statement in restaurant model?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/where-is-the-table-for-the-where-statement-in-restaurant-model/m-p/13519809#M30968</link>
      <description>&lt;P&gt;When it says "Priority = 0" that's referring to the Priority label on the tables. That statement is saying to only acquire something that hasn't already been acquired. You need this statement or tables that were already acquired can be acquired again before they're released.&lt;/P&gt;&lt;P&gt;The Priority field in the Resource's properties is the Priority value of requests made when you acquire. That way if there are multiple requests for a table, the one with the highest priority will get the next available table. &lt;/P&gt;&lt;P&gt;What code do you want to see? You shouldn't need to look at any code. If you just fill out the 4 fields on the Resource properties it will plug all the pieces in and write the SQL for you.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 20:44:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/where-is-the-table-for-the-where-statement-in-restaurant-model/m-p/13519809#M30968</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2020-01-10T20:44:18Z</dc:date>
    </item>
  </channel>
</rss>

