<?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 syntax review in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127034#M1817809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;make sure that you used the fields in the order as it is appearing in the table&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What did you want to convey here? The same order as they appear in the index, is it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Mar 2014 20:38:14 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2014-03-04T20:38:14Z</dc:date>
    <item>
      <title>SQL syntax review</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127023#M1817798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please check whether the attached select statement&amp;nbsp; syntax is appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have notification ID in the where clause so should I add the&amp;nbsp; VIQMEL table in the FROM clause or is this fine - I am getting the values correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/402575" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 14:56:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127023#M1817798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-04T14:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: SQL syntax review</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127024#M1817799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are getting the desired result, VIQMEL is already included (two lines below the commented out line, otherwise there would be a syntax error), so what is the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nice join, by the way &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/599/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 15:28:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127024#M1817799</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2014-03-04T15:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: SQL syntax review</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127025#M1817800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The join will even be "nicer" if you "explode" VIQMEL which is a database view with three tables QMIH, QMEL and ILOA, into its three components.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Smiley face" height="42" src="http://www.smiley-lol.com/smiley/metiers/ouvriers/dynamite.gif" width="42" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 15:38:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127025#M1817800</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-03-04T15:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: SQL syntax review</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127026#M1817801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Thomas &amp;amp; Raymond !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 16:35:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127026#M1817801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-04T16:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: SQL syntax review</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127027#M1817802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is very good that you used INNER JOINS instead of FOR ALL ENTRIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your work. Maintain the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INNER JOIN looks fine and make sure that you used the fields in the order as it is appearing in the table, I mean the same index as in the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thanga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 19:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127027#M1817802</guid>
      <dc:creator>ThangaPrakash</dc:creator>
      <dc:date>2014-03-04T19:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: SQL syntax review</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127028#M1817803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John,&lt;/P&gt;&lt;P&gt;Also check the performance of the query in ST05 (SQL performance race) and SE30 (Runtime analysis transaction).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to the below link for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="44587" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="The SQL Trace (ST05) &amp;#150; Quick and Easy" href="https://community.sap.com/" modifiedtitle="true" title="The SQL Trace (ST05) &amp;#150; Quick and Easy"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thanga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 19:16:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127028#M1817803</guid>
      <dc:creator>ThangaPrakash</dc:creator>
      <dc:date>2014-03-04T19:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: SQL syntax review</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127029#M1817804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Thanga Prakash wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;... and make sure that you used the fields in the order as it is appearing in the table, I mean the same index as in the tables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you mean the ON- and WHERE-conditions. Please note that this is also a myth. &lt;/P&gt;&lt;P&gt;The order of the fields does not matter, presence or absence of fields does matter (a lot).&lt;/P&gt;&lt;P&gt;If you have an index with fields A, B and C in that order, you might as well write ... WHERE C = ... AND B = ... AND A = ...&lt;/P&gt;&lt;P&gt;Compare yourself with an example program if in doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 19:36:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127029#M1817804</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2014-03-04T19:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: SQL syntax review</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127030#M1817805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the explanation, will check it. Also can you please give me some points on how to increase the performance of INNER JOINS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thanga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 19:46:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127030#M1817805</guid>
      <dc:creator>ThangaPrakash</dc:creator>
      <dc:date>2014-03-04T19:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: SQL syntax review</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127031#M1817806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The most important thing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure all ON- and WHERE-conditions make effective use of the primary or a secondary index of the involved tables.&lt;/P&gt;&lt;P&gt;"Effective" means having EQ-conditions for as many fields of that index as possible, top down without gaps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 19:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127031#M1817806</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2014-03-04T19:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: SQL syntax review</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127032#M1817807</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;Looks fine for me.You can run a live analysis of the program via SAT(new version of SE30) which will give your run time analysis of code.You can validate the select/loop statements specifically with excellent performance tuning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer how to use SAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="52696" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="Next Generation ABAP Runtime  Analysis (SAT) &amp;#150; Introduction" href="https://community.sap.com/"&gt;&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kannan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 19:54:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127032#M1817807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-04T19:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: SQL syntax review</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127033#M1817808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Thomas,&lt;/P&gt;&lt;P&gt;Even I meant to say the same in my last line of the statement, &lt;SPAN __jive_emoticon_name="confused" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/599/images/emoticons/confused.gif"&gt;&lt;/SPAN&gt;&amp;nbsp; to use Index. Might be i have not used correct sentence to convey it. &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/599/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thanga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 19:58:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127033#M1817808</guid>
      <dc:creator>ThangaPrakash</dc:creator>
      <dc:date>2014-03-04T19:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: SQL syntax review</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127034#M1817809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;make sure that you used the fields in the order as it is appearing in the table&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What did you want to convey here? The same order as they appear in the index, is it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 20:38:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127034#M1817809</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2014-03-04T20:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: SQL syntax review</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127035#M1817810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean to say try to use the index available in those tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thanga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 20:50:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-syntax-review/m-p/10127035#M1817810</guid>
      <dc:creator>ThangaPrakash</dc:creator>
      <dc:date>2014-03-04T20:50:57Z</dc:date>
    </item>
  </channel>
</rss>

