<?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: SQL Temp tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012444#M936810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you join store procedures?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Feb 2016 14:30:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-24T14:30:53Z</dc:date>
    <item>
      <title>SQL Temp tables</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012433#M936799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have a SQL query that has 5 temp tables in the script. What would be the best approach to add this script into Qlikview.&lt;/P&gt;&lt;P&gt;The below script is just an example. There are multiple where clauses and aggregations in each temp table.&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;//something like this&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;into #temp1&lt;/P&gt;&lt;P&gt;from table1&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;into #temp2&lt;/P&gt;&lt;P&gt;from table1&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;select *&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;into #temp3&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;from table1&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;select *&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;into #temp4&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;from table1&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;select *&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;into #temp5&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;from table1&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;select *&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;from table1&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inner join temp1 on table1.id = temp1.id&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;inner join temp1 on table1.id = temp2.id and table1.date = temp2.date&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;inner join temp1 on table1.id = temp3.id and table1.first = temp3.first&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;inner join temp1 on table1.id = temp4.id&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;inner join temp1 on table1.id = temp5.id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Also, &lt;SPAN style="color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px;"&gt;Can someone explain to me why I can use a SQL temp table when I connect to Excel through an ODBC Connection but cannot use a SQL temp table through an ODBC Connection to Qlikview&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;//&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;**Error testing table not found.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;testing:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sql&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SELECT *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;into #testingtable&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; FROM VTl&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;select&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ACT_DT]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[IT_DT]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from #testingtable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD [ACT_DT]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[IT_DT]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident testing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 20:55:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012433#M936799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-23T20:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Temp tables</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012434#M936800</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;I am not what you are trying to do in the SQL Query you posted, you are loading the same table 5 times into a single table and didn't used any where conditions and also you are joining the tables based on the same columns.&amp;nbsp; I think you can directly load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select*&lt;/P&gt;&lt;P&gt;FROM Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There should be no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 03:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012434#M936800</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-02-24T03:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Temp tables</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012435#M936801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this just an example, or is that your real script? Assuming it is NOT your real SQL script, then there is no reason why you cannot execute a statement using temp tables in QV - everything between the SQL keyword and the next semi-colon is passed directly to the SQL server. Its possible that the user name (or the connection string) has read-only rights.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to check the Open Databases in Read and Write mode (the Settings tag in the bottom of the script editor).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 05:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012435#M936801</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-02-24T05:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Temp tables</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012436#M936802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of Sql Scripting&amp;nbsp; load directly into qlikview use joins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 06:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012436#M936802</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2016-02-24T06:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Temp tables</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012437#M936803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You called&amp;nbsp; same table 5 times why? r u want to rename any columns&amp;nbsp; in tables&lt;/P&gt;&lt;P&gt;any way my idea is just &lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load * from &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Tab2:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Load *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Resident&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Table1;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...etc&lt;/P&gt;&lt;P&gt;and about your conditions you already have same data in all tables are same so join output same data will come.&lt;/P&gt;&lt;P&gt;--&amp;gt; Some times you may be have data like sheet 1 2013 year data, sheet 2 2014 year data ...etc with same fields so u need to call 5 tables individually&amp;nbsp; in qlikview, if u use Excel as source&lt;/P&gt;&lt;P&gt;but if u saved the data into database table you can call only once, in Qlikview automatically ur application speed will increase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 06:53:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012437#M936803</guid>
      <dc:creator>ramasaisaksoft</dc:creator>
      <dc:date>2016-02-24T06:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Temp tables</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012438#M936804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any error message you are getting?&lt;/P&gt;&lt;P&gt; Because I used an ODBC connection to connect to SQL and my Qlikview script has SQL query that includes temp tables, It works fine for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 07:14:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012438#M936804</guid>
      <dc:creator>pooja_sn</dc:creator>
      <dc:date>2016-02-24T07:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Temp tables</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012439#M936805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;testing:&lt;/P&gt;&lt;P&gt;sql&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;into #testingtable&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM VTl&lt;/P&gt;&lt;P&gt;select&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ACT_DT]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[IT_DT]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;from #testingtable&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [ACT_DT]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[IT_DT]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident testing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**Error testing table not found.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 13:31:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012439#M936805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-24T13:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Temp tables</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012440#M936806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script was just an example. I need to understand the syntax. For example the below query runs in SQL but not in Qlikview...(I checked the settings tag and I'm good there)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;**Error testing table not found.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;testing:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sql&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SELECT *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;into #testingtable&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; FROM VTl&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;select&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ACT_DT]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[IT_DT]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from #testingtable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD [ACT_DT]&lt;SPAN style="line-height: 1.5em;"&gt; ,[IT_DT]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; &lt;SPAN style="line-height: 1.5em;"&gt;Resident testing&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 13:40:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012440#M936806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-24T13:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Temp tables</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012441#M936807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes my table does not exist. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit;"&gt;**Error testing table not found.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;testing:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sql&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SELECT *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;into #testingtable&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; FROM VTl&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;select &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ACT_DT]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[IT_DT]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from #testingtable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD [ACT_DT]&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; ,[IT_DT]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Resident testing&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 13:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012441#M936807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-24T13:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Temp tables</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012442#M936808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answer is: use stored procedure that returns a dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call the stored procedure from QlikView and done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 14:17:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012442#M936808</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2016-02-24T14:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Temp tables</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012443#M936809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;End your SQL script with a semicolon (;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 14:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012443#M936809</guid>
      <dc:creator>pooja_sn</dc:creator>
      <dc:date>2016-02-24T14:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Temp tables</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012444#M936810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you join store procedures?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 14:30:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012444#M936810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-24T14:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Temp tables</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012445#M936811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do all the logic in the stored procedure and return the result to QlikView. In the SP, you can use SQL specific features, like #temp tables, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 14:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012445#M936811</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2016-02-24T14:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Temp tables</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012446#M936812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using trusted connections or SQL Server security? Are you ODBC or OLEDB? Is is possible that the credentials for QV do not allow access to the master and tempdb databases which are necessary for temp tables. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 14:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012446#M936812</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-02-24T14:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Temp tables</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012447#M936813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried both connections and I have changed my connection db to Master. Nothing has changed, it runs but no tables are displayed. I'm not sure if I'm using trusted connections or SQL Server security.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 19:04:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012447#M936813</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-24T19:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Temp tables</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012448#M936815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After struggling with this recently, I found that if you separate the sql call that loads the temp table from the sql call that loads the data to QV, it works (at least in my environment).&amp;nbsp; Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sql&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SELECT *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;into #testingtable&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; FROM VTl&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;testing:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;load *;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sql&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;select &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ACT_DT]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[IT_DT]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from #testingtable&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;EDIT:&amp;nbsp; I should add that I can successfully load and manipulate multiple #temp tables in the first SQL block, then retrieve the results in the second.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2017 01:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012448#M936815</guid>
      <dc:creator>kevinduck</dc:creator>
      <dc:date>2017-01-07T01:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Temp tables</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012449#M936816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For me, using the below in my script worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET NOCOUNT ON &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 15:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/1012449#M936816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-09T15:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Temp tables</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/2162386#M1225169</link>
      <description>&lt;P&gt;Check out this solution which has worked beautifully for me, inspired by BeASensei (&lt;A href="https://basensei.com/software/qliksense/sql-temp-tables-in-qliksense/)" target="_blank"&gt;https://basensei.com/software/qliksense/sql-temp-tables-in-qliksense/)&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically, before the load statement, write each ##temp_table query using SQL keyword (and end that query with a semicolon). And at the end, define the table, use SQL keyword and then your main select statement.&lt;/P&gt;
&lt;P&gt;No need for SET NOCOUNT ON. See (what I mean by above) below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LIB CONNECT TO xxxxx;&lt;/P&gt;
&lt;P&gt;SQL&lt;/P&gt;
&lt;P&gt;//something like this&lt;/P&gt;
&lt;P&gt;select *&lt;/P&gt;
&lt;P&gt;into #temp1&lt;/P&gt;
&lt;P&gt;from table1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SQL&lt;/P&gt;
&lt;P&gt;select *&lt;/P&gt;
&lt;P&gt;into #temp2&lt;/P&gt;
&lt;P&gt;from table1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SQL&lt;/P&gt;
&lt;P&gt;select *&lt;/P&gt;
&lt;P&gt;into #temp3&lt;/P&gt;
&lt;P&gt;from table1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SQL&lt;/P&gt;
&lt;P&gt;select *&lt;/P&gt;
&lt;P&gt;into #temp4&lt;/P&gt;
&lt;P&gt;from table1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SQL&lt;/P&gt;
&lt;P&gt;select *&lt;/P&gt;
&lt;P&gt;into #temp5&lt;/P&gt;
&lt;P&gt;from table1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Test:&lt;/P&gt;
&lt;P&gt;LOAD *;&lt;/P&gt;
&lt;P&gt;SQL&lt;/P&gt;
&lt;P&gt;select *&lt;/P&gt;
&lt;P&gt;from table1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inner join temp1 on table1.id = temp1.id&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;inner join temp1 on table1.id = temp2.id and table1.date = temp2.date&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;inner join temp1 on table1.id = temp3.id and table1.first = temp3.first&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;inner join temp1 on table1.id = temp4.id&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;inner join temp1 on table1.id = temp5.id;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 11:57:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Temp-tables/m-p/2162386#M1225169</guid>
      <dc:creator>zilonelion</dc:creator>
      <dc:date>2024-01-17T11:57:17Z</dc:date>
    </item>
  </channel>
</rss>

