<?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 script! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-script/m-p/1285075#M869792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;^^ I agree, Variables are most probably the issue. the rest look fine imo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Dec 2016 08:28:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-12-06T08:28:47Z</dc:date>
    <item>
      <title>SQL script!</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-script/m-p/1285072#M869789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;$(QVDatabaseTable_1):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT count(*) as NoOf_Rows&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM $(DatabaseName).$(DatabaseUser).$(DatabaseTable_1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(INCREMENTAL_EXP);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store $(QVDatabaseTable_1) into $(vQVDFileName_1)(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table $(QVDatabaseTable_1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This just will not run... do anybody have an idea?&lt;/P&gt;&lt;P&gt;i have also tried just &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SQL SELECT count(*) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;also.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;please let me know if I am doing anything wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you!!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-script/m-p/1285072#M869789</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: SQL script!</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-script/m-p/1285073#M869790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With aggregation, you need to use Group by the statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; somecolumn&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;someothercolumn&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; COUNT&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(*)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; my_table &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;GROUP&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;BY&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; somecolumn&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;someothercolumn&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;www.qliksteps.com&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 01:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-script/m-p/1285073#M869790</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2016-12-06T01:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: SQL script!</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-script/m-p/1285074#M869791</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;Check whether your variables are populating with expected values.&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>Tue, 06 Dec 2016 08:11:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-script/m-p/1285074#M869791</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-12-06T08:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: SQL script!</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-script/m-p/1285075#M869792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;^^ I agree, Variables are most probably the issue. the rest look fine imo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 08:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-script/m-p/1285075#M869792</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-06T08:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: SQL script!</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-script/m-p/1285076#M869793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can add some TRACE before the LOAD statement, something like&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TRACE&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;QVDatabaseTable_1&lt;/SPAN&gt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(QVDatabaseTable_1);&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TRACE DatabaseName=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(DatabaseName);&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;.....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;to check you vars&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can post the error you get&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 08:37:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-script/m-p/1285076#M869793</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-12-06T08:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: SQL script!</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-script/m-p/1285077#M869794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are your problem with sql query? (SELECT count(*) as NoOf_Rows ... )&lt;/P&gt;&lt;P&gt;Please, post error,which you get, when document is reloading.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 08:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-script/m-p/1285077#M869794</guid>
      <dc:creator>asgardd2</dc:creator>
      <dc:date>2016-12-06T08:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: SQL script!</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-script/m-p/1285078#M869795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OUTER JOIN worked perfectly for me!! I have a followup question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to make another column by adding or subtracting other two columns?&lt;/P&gt;&lt;P&gt;for example, let's say by Outer Joining I got three columns col1, col2, col3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I make col4 by col1 - col2?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 09:59:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-script/m-p/1285078#M869795</guid>
      <dc:creator />
      <dc:date>2016-12-06T09:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: SQL script!</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-script/m-p/1285079#M869796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can do that in the preceeding load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;col1 - col2 as col4;&lt;/P&gt;&lt;P&gt;sql....;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 10:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-script/m-p/1285079#M869796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-06T10:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: SQL script!</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-script/m-p/1285080#M869797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have a table (Table) with a logical primary key (Id) with a join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;left join (Table)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Id,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; col1 - col2 as col4&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;resident Table;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can always do a resident load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NewTable:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Noconcatenate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; col1 - col2 as col4&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;resident Table;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table Table;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 10:08:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-script/m-p/1285080#M869797</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-12-06T10:08:08Z</dc:date>
    </item>
  </channel>
</rss>

