<?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 Calculation in SAP SQL where clause? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-in-SAP-SQL-where-clause/m-p/150852#M28813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;LOAD [/BIC/ZBATCHA],&lt;BR /&gt; CALDAY,&lt;BR /&gt; ISSTOTSTCK,&lt;BR /&gt; MATERIAL,&lt;BR /&gt; RECTOTSTCK;&lt;BR /&gt; SQL SELECT /BIC/ZBATCHA,&lt;BR /&gt; CALDAY,&lt;BR /&gt; ISSTOTSTCK,&lt;BR /&gt; MATERIAL,&lt;BR /&gt; RECTOTSTCK&lt;BR /&gt; FROM [/BIC/AZIC_D0500] WHERE [RECTOTSTCK] - [ISSTOTSTCK] &amp;lt;&amp;gt; 0;&lt;/P&gt;&lt;P&gt;If doesn't work you may have to move your WHERE condition in preload section. Some thing like this:&lt;/P&gt;&lt;P&gt;LOAD [/BIC/ZBATCHA],&lt;BR /&gt; CALDAY,&lt;BR /&gt; ISSTOTSTCK,&lt;BR /&gt; MATERIAL,&lt;BR /&gt; RECTOTSTCK&lt;BR /&gt; WHERE RECTOTSTCK - ISSTOTSTCK &amp;lt;&amp;gt; 0;&lt;BR /&gt; SQL SELECT /BIC/ZBATCHA,&lt;BR /&gt; CALDAY,&lt;BR /&gt; ISSTOTSTCK,&lt;BR /&gt; MATERIAL,&lt;BR /&gt; RECTOTSTCK,&lt;BR /&gt; FROM [/BIC/AZIC_D0500];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Aug 2009 02:58:41 GMT</pubDate>
    <dc:creator>disqr_rm</dc:creator>
    <dc:date>2009-08-01T02:58:41Z</dc:date>
    <item>
      <title>Calculation in SAP SQL where clause?</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-SAP-SQL-where-clause/m-p/150851#M28812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Every time I try to use a calculation in a where clause for an SAP select statement I get an open stream error. Below is the load/select statement that I am issuing. Does anyone know if this works?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt; LOAD [/BIC/ZBATCHA],&lt;BR /&gt; CALDAY,&lt;BR /&gt; ISSTOTSTCK,&lt;BR /&gt; MATERIAL,&lt;BR /&gt; RECTOTSTCK;&lt;BR /&gt; SQL SELECT /BIC/ZBATCHA,&lt;BR /&gt; CALDAY,&lt;BR /&gt; ISSTOTSTCK,&lt;BR /&gt; MATERIAL,&lt;BR /&gt; RECTOTSTCK&lt;BR /&gt; FROM /BIC/AZIC_D0500 WHERE RECTOTSTCK - ISSTOTSTCK &amp;lt;&amp;gt; 0;;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Aug 2009 02:50:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-SAP-SQL-where-clause/m-p/150851#M28812</guid>
      <dc:creator>sicilianif</dc:creator>
      <dc:date>2009-08-01T02:50:47Z</dc:date>
    </item>
    <item>
      <title>Calculation in SAP SQL where clause?</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-SAP-SQL-where-clause/m-p/150852#M28813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;LOAD [/BIC/ZBATCHA],&lt;BR /&gt; CALDAY,&lt;BR /&gt; ISSTOTSTCK,&lt;BR /&gt; MATERIAL,&lt;BR /&gt; RECTOTSTCK;&lt;BR /&gt; SQL SELECT /BIC/ZBATCHA,&lt;BR /&gt; CALDAY,&lt;BR /&gt; ISSTOTSTCK,&lt;BR /&gt; MATERIAL,&lt;BR /&gt; RECTOTSTCK&lt;BR /&gt; FROM [/BIC/AZIC_D0500] WHERE [RECTOTSTCK] - [ISSTOTSTCK] &amp;lt;&amp;gt; 0;&lt;/P&gt;&lt;P&gt;If doesn't work you may have to move your WHERE condition in preload section. Some thing like this:&lt;/P&gt;&lt;P&gt;LOAD [/BIC/ZBATCHA],&lt;BR /&gt; CALDAY,&lt;BR /&gt; ISSTOTSTCK,&lt;BR /&gt; MATERIAL,&lt;BR /&gt; RECTOTSTCK&lt;BR /&gt; WHERE RECTOTSTCK - ISSTOTSTCK &amp;lt;&amp;gt; 0;&lt;BR /&gt; SQL SELECT /BIC/ZBATCHA,&lt;BR /&gt; CALDAY,&lt;BR /&gt; ISSTOTSTCK,&lt;BR /&gt; MATERIAL,&lt;BR /&gt; RECTOTSTCK,&lt;BR /&gt; FROM [/BIC/AZIC_D0500];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Aug 2009 02:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-SAP-SQL-where-clause/m-p/150852#M28813</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-08-01T02:58:41Z</dc:date>
    </item>
    <item>
      <title>Calculation in SAP SQL where clause?</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-SAP-SQL-where-clause/m-p/150853#M28814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just putting the fields in brackets does not help.&lt;/P&gt;&lt;P&gt;If I put it in the load statement, wouldn't it still pull all the data? I am working with a table that has 65 million records. 20 million+ of which can be weeded out if I can do the calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Aug 2009 03:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-SAP-SQL-where-clause/m-p/150853#M28814</guid>
      <dc:creator>sicilianif</dc:creator>
      <dc:date>2009-08-01T03:06:14Z</dc:date>
    </item>
  </channel>
</rss>

