<?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 use sql #temp table and insert statement in qlik in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-use-sql-temp-table-and-insert-statement-in-qlik/m-p/1429486#M34211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just use the SQL keyword. The load will return no data but that is not a problem. For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CONNECT ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// create temp table &lt;SPAN style="font-size: 13.3333px;"&gt;(no data returned)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SELECT * into #temp&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM mytable;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// do some manipulation to the temp table (no data returned)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;UPDATE #temp&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// Now get the data into QV&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL SELECT * FROM #temp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DISCONNECT; //#temp out of scope after disconnect, so the resources used are released&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The #temp table remains in scope for the duration of a single database connection. Make sure that the connection has the necessary permissions to create temp tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Nov 2017 08:48:52 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2017-11-21T08:48:52Z</dc:date>
    <item>
      <title>How to use sql #temp table and insert statement in qlik</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-sql-temp-table-and-insert-statement-in-qlik/m-p/1429485#M34210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have idea about sql #temp table and insert statement usability in qlik.&lt;/P&gt;&lt;P&gt;I have a sql query with multiple insert and #temp table, how to use this query in qlik.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;RK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 08:30:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-sql-temp-table-and-insert-statement-in-qlik/m-p/1429485#M34210</guid>
      <dc:creator>ramkrishna86</dc:creator>
      <dc:date>2017-11-21T08:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use sql #temp table and insert statement in qlik</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-sql-temp-table-and-insert-statement-in-qlik/m-p/1429486#M34211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just use the SQL keyword. The load will return no data but that is not a problem. For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CONNECT ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// create temp table &lt;SPAN style="font-size: 13.3333px;"&gt;(no data returned)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SELECT * into #temp&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM mytable;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// do some manipulation to the temp table (no data returned)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;UPDATE #temp&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// Now get the data into QV&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL SELECT * FROM #temp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DISCONNECT; //#temp out of scope after disconnect, so the resources used are released&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The #temp table remains in scope for the duration of a single database connection. Make sure that the connection has the necessary permissions to create temp tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 08:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-sql-temp-table-and-insert-statement-in-qlik/m-p/1429486#M34211</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-11-21T08:48:52Z</dc:date>
    </item>
  </channel>
</rss>

