<?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: how to execute the Select statement stored in variable? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-execute-the-Select-statement-stored-in-variable/m-p/383758#M143230</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try $(vSQL) instead of vSQL ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2012 10:50:58 GMT</pubDate>
    <dc:creator>whiteline</dc:creator>
    <dc:date>2012-09-04T10:50:58Z</dc:date>
    <item>
      <title>how to execute the Select statement stored in variable?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-execute-the-Select-statement-stored-in-variable/m-p/383757#M143229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table where I've stored the queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table SQL_QUERY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID, QUERY&lt;BR /&gt;1,SELECT * FROM EMPLOYEE&lt;BR /&gt;2,SELECT * FROM DEPARTMENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Now I am Looping this table - &lt;BR /&gt;for vLoopNumber = 1 to NoOfRows('SQL_QUERY')&lt;BR /&gt;&amp;nbsp; Let vSQL = FieldValue('SQL_QUERY',$(vLoopNumber));&amp;nbsp;&amp;nbsp; // it fetches the Query&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Now I want to load the FieldValue('SQL_QUERY',$(vLoopNumber)) i.e resultset of query in table.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD *;&lt;BR /&gt; vSQL ;&amp;nbsp; // here I want to execute the Select statement stored in variable vSQL.&lt;/P&gt;&lt;P&gt;Next vLoopNumber &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;---&lt;BR /&gt;Please let me know how to execute the Select statement stored in variable vSQL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 10:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-execute-the-Select-statement-stored-in-variable/m-p/383757#M143229</guid>
      <dc:creator />
      <dc:date>2012-09-04T10:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to execute the Select statement stored in variable?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-execute-the-Select-statement-stored-in-variable/m-p/383758#M143230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try $(vSQL) instead of vSQL ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 10:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-execute-the-Select-statement-stored-in-variable/m-p/383758#M143230</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-04T10:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to execute the Select statement stored in variable?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-execute-the-Select-statement-stored-in-variable/m-p/383759#M143231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 11:01:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-execute-the-Select-statement-stored-in-variable/m-p/383759#M143231</guid>
      <dc:creator />
      <dc:date>2012-09-04T11:01:55Z</dc:date>
    </item>
  </channel>
</rss>

