<?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: Query to SAP scritp with: &amp;quot; where right(OBJNR,7) &amp;gt; '1030000' &amp;quot; in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Query-to-SAP-scritp-with-quot-where-right-OBJNR-7-gt-1030000/m-p/558236#M686462</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SQL queries does not support QlikView Functions, they´re handled by the Database&lt;/P&gt;&lt;P&gt;If you using Oracle for example try to convert to a number using Oracle Functions&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;where&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; to_number(&lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;right(OBJNR,7)) &amp;gt; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;1030000&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jan 2014 18:13:09 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2014-01-23T18:13:09Z</dc:date>
    <item>
      <title>Query to SAP scritp with: " where right(OBJNR,7) &gt; '1030000' "</title>
      <link>https://community.qlik.com/t5/QlikView/Query-to-SAP-scritp-with-quot-where-right-OBJNR-7-gt-1030000/m-p/558235#M686461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the the following select in my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; OBJNR, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; STAT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; INACT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CHGNR; &lt;/P&gt;&lt;P&gt;SQL Select OBJNR STAT INACT CHGNR&amp;nbsp; from JEST where right(OBJNR,7) &amp;gt; 1031000 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field &lt;STRONG&gt;OBJNR&lt;/STRONG&gt; is like "&lt;STRONG&gt;OR0000001033466&lt;/STRONG&gt;", and i just need to get where the last 7 numbers are &lt;STRONG&gt;&amp;gt; '1030000'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make a &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;where&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;right(OBJNR,7) &amp;gt; &lt;STRONG&gt; '1030000'&lt;/STRONG&gt;&lt;/STRONG&gt; in the &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;where&lt;/STRONG&gt;&lt;/SPAN&gt; clause. but does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also try: &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;where&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;num&lt;/SPAN&gt;(right(OBJNR,7)) &amp;gt;&amp;nbsp; &lt;STRONG&gt;'1030000'&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but doesn't work too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 18:03:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-to-SAP-scritp-with-quot-where-right-OBJNR-7-gt-1030000/m-p/558235#M686461</guid>
      <dc:creator />
      <dc:date>2014-01-23T18:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Query to SAP scritp with: " where right(OBJNR,7) &gt; '1030000' "</title>
      <link>https://community.qlik.com/t5/QlikView/Query-to-SAP-scritp-with-quot-where-right-OBJNR-7-gt-1030000/m-p/558236#M686462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SQL queries does not support QlikView Functions, they´re handled by the Database&lt;/P&gt;&lt;P&gt;If you using Oracle for example try to convert to a number using Oracle Functions&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;where&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; to_number(&lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;right(OBJNR,7)) &amp;gt; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;1030000&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 18:13:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-to-SAP-scritp-with-quot-where-right-OBJNR-7-gt-1030000/m-p/558236#M686462</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-01-23T18:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Query to SAP scritp with: " where right(OBJNR,7) &gt; '1030000' "</title>
      <link>https://community.qlik.com/t5/QlikView/Query-to-SAP-scritp-with-quot-where-right-OBJNR-7-gt-1030000/m-p/558237#M686463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The statement you have written:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SQL Select OBJNR STAT INACT CHGNR&amp;nbsp; from JEST where right(OBJNR,7) &amp;gt; 1031000 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&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;"&gt;don't you think you need commas between each field and also try using '1031000'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&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;"&gt;Are you getting any error, it is just returning all records?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 18:13:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-to-SAP-scritp-with-quot-where-right-OBJNR-7-gt-1030000/m-p/558237#M686463</guid>
      <dc:creator />
      <dc:date>2014-01-23T18:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Query to SAP scritp with: " where right(OBJNR,7) &gt; '1030000' "</title>
      <link>https://community.qlik.com/t5/QlikView/Query-to-SAP-scritp-with-quot-where-right-OBJNR-7-gt-1030000/m-p/558238#M686464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Combining responses from &lt;A href="https://community.qlik.com/qlik-users/21667"&gt;Clever Anjos&lt;/A&gt; and &lt;A href="https://community.qlik.com/qlik-users/100169"&gt;Angad Singh&lt;/A&gt;, and adding from myself just a little:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; OBJNR, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; STAT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; INACT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CHGNR&lt;/P&gt;&lt;P&gt;where right(OBJNR,7) &amp;gt; 1031000; &lt;/P&gt;&lt;P&gt;SQL Select OBJNR, STAT, INACT, CHGNR&amp;nbsp; from JEST;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 20:50:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-to-SAP-scritp-with-quot-where-right-OBJNR-7-gt-1030000/m-p/558238#M686464</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-23T20:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Query to SAP scritp with: " where right(OBJNR,7) &gt; '1030000' "</title>
      <link>https://community.qlik.com/t5/QlikView/Query-to-SAP-scritp-with-quot-where-right-OBJNR-7-gt-1030000/m-p/558239#M686465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Michael, though I have noticed that most data fields are stored as text in SAP you may need to use a num wrapper to format the field as such, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; OBJNR, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; STAT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; INACT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CHGNR&lt;/P&gt;&lt;P&gt;where right(Num(OBJNR),7) &amp;gt; 1031000; &lt;/P&gt;&lt;P&gt;SQL Select OBJNR, STAT, INACT, CHGNR&amp;nbsp; from JEST;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 20:58:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-to-SAP-scritp-with-quot-where-right-OBJNR-7-gt-1030000/m-p/558239#M686465</guid>
      <dc:creator>jpapador</dc:creator>
      <dc:date>2014-01-23T20:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Query to SAP scritp with: " where right(OBJNR,7) &gt; '1030000' "</title>
      <link>https://community.qlik.com/t5/QlikView/Query-to-SAP-scritp-with-quot-where-right-OBJNR-7-gt-1030000/m-p/558240#M686466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/3931"&gt;Michael Solomovich&lt;/A&gt;, I´m your fan and I´d like to ask about one doubt about this type of code (Where condition at LOAD, not SQL).&lt;/P&gt;&lt;P&gt;In this case, all lines are retrievied by database and QlikView filters? I think this could be unnapropriate for example if database retrives millions of rows if QV need thousands or even less.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 13:51:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-to-SAP-scritp-with-quot-where-right-OBJNR-7-gt-1030000/m-p/558240#M686466</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-01-24T13:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Query to SAP scritp with: " where right(OBJNR,7) &gt; '1030000' "</title>
      <link>https://community.qlik.com/t5/QlikView/Query-to-SAP-scritp-with-quot-where-right-OBJNR-7-gt-1030000/m-p/558241#M686467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/21667"&gt;Clever Anjos&lt;/A&gt; - a valid doubt.&lt;/P&gt;&lt;P&gt;Yes, if we filter on LOAD instead of SQL, all records are retrieved from the data source and filtered after that.&amp;nbsp; Hence it is slower.&amp;nbsp; By using filtering on LOAD, we're gaining clarity and flexibility of the script (at least for me), but loosing load speed.&amp;nbsp; So, it depends on priorities.&lt;/P&gt;&lt;P&gt;If the number of rows is large, and we need only a small fraction of it, and reload time is a priority, it is better to filter on the SQL SELECT rather than on LOAD.&lt;/P&gt;&lt;P&gt;Million rows take seconds to load, so the delay is insignificant even if you need just a few records.&amp;nbsp; When there are hundreds of millions, and we need a small portion, then filtering on SQL SELECT makes noticeable difference. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for pointing it out - it may be essential when choosing how to filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 15:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-to-SAP-scritp-with-quot-where-right-OBJNR-7-gt-1030000/m-p/558241#M686467</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-24T15:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Query to SAP scritp with: " where right(OBJNR,7) &gt; '1030000' "</title>
      <link>https://community.qlik.com/t5/QlikView/Query-to-SAP-scritp-with-quot-where-right-OBJNR-7-gt-1030000/m-p/558242#M686468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for sharing your wisdom &lt;A href="https://community.qlik.com/qlik-users/3931"&gt;Michael Solomovich&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 15:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-to-SAP-scritp-with-quot-where-right-OBJNR-7-gt-1030000/m-p/558242#M686468</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-01-24T15:15:33Z</dc:date>
    </item>
  </channel>
</rss>

