<?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: SELECT syntax for speed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-for-speed/m-p/685636#M30666</link>
    <description>&lt;P&gt;Hi Ken Melching, let us know the results. Regards&lt;/P&gt;</description>
    <pubDate>Thu, 23 Aug 2018 21:07:54 GMT</pubDate>
    <dc:creator>roberto_forti</dc:creator>
    <dc:date>2018-08-23T21:07:54Z</dc:date>
    <item>
      <title>SELECT syntax for speed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-for-speed/m-p/685633#M30663</link>
      <description>&lt;P&gt;What is faster in a SELECT....WHERE statement?&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;objnr+0(2) IN ('PR','NV')&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;or&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;(objnr LIKE 'PR%' OR objnr LIKE 'NV%')&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 16:30:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-for-speed/m-p/685633#M30663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-08-23T16:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT syntax for speed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-for-speed/m-p/685634#M30664</link>
      <description>&lt;P&gt;Hi, consider working with below transactions to analyze it&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;1. SE30 or SAT (Runtime Analysis) transaction&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;2. ST05 - SQL Trace (Performance Trace) transaction&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Attached documentation about SQL Trace&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://wiki.scn.sap.com/wiki/display/SAPSQL/How+to+run+transaction+st05+to+trace+a+program%2C+transaction+or+user+execution" target="test_blank"&gt;https://wiki.scn.sap.com/wiki/display/SAPSQL/How+to+run+transaction+st05+to+trace+a+program%2C+transaction+or+user+execution&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 17:00:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-for-speed/m-p/685634#M30664</guid>
      <dc:creator>roberto_forti</dc:creator>
      <dc:date>2018-08-23T17:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT syntax for speed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-for-speed/m-p/685635#M30665</link>
      <description>&lt;P&gt;Did you consider writing a couple of programs to find out? And then maybe publishing a blog with the use case, why it's important to you and the results?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 19:39:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-for-speed/m-p/685635#M30665</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-08-23T19:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT syntax for speed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-for-speed/m-p/685636#M30666</link>
      <description>&lt;P&gt;Hi Ken Melching, let us know the results. Regards&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 21:07:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-for-speed/m-p/685636#M30666</guid>
      <dc:creator>roberto_forti</dc:creator>
      <dc:date>2018-08-23T21:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT syntax for speed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-for-speed/m-p/685637#M30667</link>
      <description>&lt;P&gt;It depends on the type of database you are using, not ABAP.&lt;/P&gt;
  &lt;P&gt;Is objnr+0(2) permitted in OpenSQL now?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 21:58:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-for-speed/m-p/685637#M30667</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2018-08-23T21:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT syntax for speed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-for-speed/m-p/685638#M30668</link>
      <description>&lt;P&gt;Ken,&lt;/P&gt;
  &lt;P&gt;objnr+0(2) IN ('PR','NV')&lt;/P&gt;
  &lt;P&gt;Above syntax is disallowed (at least when Oracle is the database). If that is allowed in your installation, it should be easy to write a test program and check for yourself. You can use GET TIME STAMP statement to measure the time.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;DATA: l_timestamp_1 TYPE timestampl,
      l_timestamp_2 TYPE timestampl,
      l_time        TYPE timestampl,

      t_covp        TYPE STANDARD TABLE OF covp.

GET TIME STAMP FIELD l_timestamp_1.

SELECT  *
INTO   TABLE t_covp
FROM   covp
UP TO  100 ROWS
WHERE  objnr LIKE 'PR%' OR objnr LIKE 'NV%'.

GET TIME STAMP FIELD l_timestamp_2.

l_time = l_timestamp_2 - l_timestamp_1.
WRITE: / l_timestamp_1, / l_timestamp_2, / l_time.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 14:24:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-for-speed/m-p/685638#M30668</guid>
      <dc:creator>P14397410</dc:creator>
      <dc:date>2018-08-24T14:24:33Z</dc:date>
    </item>
  </channel>
</rss>

