<?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: Difference between Check and where statement. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-check-and-where-statement/m-p/3507614#M843645</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;&lt;/P&gt;&lt;P&gt;  Check statement will give low performance compare to where.&lt;/P&gt;&lt;P&gt;B'cause After selecting the record for database table you are checking the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE: At the time of selection records from table you are checking. So based on condition record will select otherwise it will go for nect record with that database connection only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In first example. : It will terminate the selection.No next search...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second : it will continue the search....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Mar 2008 05:04:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-14T05:04:46Z</dc:date>
    <item>
      <title>Difference between Check and where statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-check-and-where-statement/m-p/3507612#M843643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody i know that where clause is efficient than check condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i want to know if in the following example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     even after finding SBOOK_WA-CARRID = 'LH' ,&lt;/P&gt;&lt;P&gt; DOES THE CHECK CONDITION TERMINATES?? OR KEEP SEARCING TILL THE END OF INTERNAL TABLE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN THE 2nd EXAMPLE,&lt;/P&gt;&lt;P&gt; DOES THE WHERE CLAUSE EXHIBIT THE SAME PHENOMENON?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM SBOOK INTO SBOOK_WA.&lt;/P&gt;&lt;P&gt;  CHECK: SBOOK_WA-CARRID = 'LH' AND&lt;/P&gt;&lt;P&gt;         SBOOK_WA-CONNID = '0400'.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;2nd example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM SBOOK INTO SBOOK_WA&lt;/P&gt;&lt;P&gt;  WHERE CARRID = 'LH' AND&lt;/P&gt;&lt;P&gt;        CONNID = '0400'.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 04:58:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-check-and-where-statement/m-p/3507612#M843643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T04:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Check and where statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-check-and-where-statement/m-p/3507613#M843644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;the check statement will work as desired, but performance wise the second select query with th where clause is better&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;parminder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 05:01:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-check-and-where-statement/m-p/3507613#M843644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T05:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Check and where statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-check-and-where-statement/m-p/3507614#M843645</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;&lt;/P&gt;&lt;P&gt;  Check statement will give low performance compare to where.&lt;/P&gt;&lt;P&gt;B'cause After selecting the record for database table you are checking the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE: At the time of selection records from table you are checking. So based on condition record will select otherwise it will go for nect record with that database connection only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In first example. : It will terminate the selection.No next search...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second : it will continue the search....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 05:04:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-check-and-where-statement/m-p/3507614#M843645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T05:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Check and where statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-check-and-where-statement/m-p/3507615#M843646</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;If you code select statement with where condition then it&lt;/P&gt;&lt;P&gt;is very efficient.Because the where condition will execute first and then the select &lt;/P&gt;&lt;P&gt;statement will get data from data base with selected fields,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you code the select statement after that if you put check statement,&lt;/P&gt;&lt;P&gt;first select statement will execute with out key base.Means the performance decreases.&lt;/P&gt;&lt;P&gt;(see searching known thing is easy than unknowing thing.).&lt;/P&gt;&lt;P&gt;so its better to go for select statement with where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;swami.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 05:07:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-check-and-where-statement/m-p/3507615#M843646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T05:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Check and where statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-check-and-where-statement/m-p/3507616#M843647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok ,,Now i want to know if the condition SBOOK_WA-CARRID &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= 'LH'  is repeated for the 2nd time in the database table.Then will the Check &amp;amp; Where condition continue to search for it even after having encountered the above mentioned condition already??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 05:16:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-check-and-where-statement/m-p/3507616#M843647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T05:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Check and where statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-check-and-where-statement/m-p/3507617#M843648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If where clause is used in select query, it filters the database records according to the condn. and retrieves values into the internal table.&lt;/P&gt;&lt;P&gt;When, check statement is used, it checks for the condition only after the selection. This will increase the execution time.&lt;/P&gt;&lt;P&gt;In addition, the statements after check statemnt (in the same event) will be executed only if the condition mentioned in check statement is true.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 05:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-check-and-where-statement/m-p/3507617#M843648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T05:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Check and where statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-check-and-where-statement/m-p/3507618#M843649</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;First Example will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second Example will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dhruv Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 05:23:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-check-and-where-statement/m-p/3507618#M843649</guid>
      <dc:creator>dhruv_shah3</dc:creator>
      <dc:date>2008-03-14T05:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Check and where statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-check-and-where-statement/m-p/3507619#M843650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My question is ,&lt;/P&gt;&lt;P&gt;IF SBOOK_WA-CARRID = 'LH' CONDITION IS AGAIN PRESENT IN THE DATABASE TABLE ,,,,WILL THE CHECK CONDITION SEARCH IT AGAIN EVEN AFTER FINDING IT FOR THE FIRST TIME IN THE TABLE???OR SIMPLY TERMINATE IN THE FIRST TIME THE CONDITION SATISFIES??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIMILARLY DOES THE WHERE CLAUSE CONTINUE SEARCHING EVEN AFTER HAVING FOUND THE CONDITION FOR THE FIRST TIME??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLEASE HELP ME IN THIS ASPECT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 05:27:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-check-and-where-statement/m-p/3507619#M843650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T05:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Check and where statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-check-and-where-statement/m-p/3507620#M843651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi saswat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's an internal table, why do you want to select it instead of looping/reading it? &lt;/P&gt;&lt;P&gt;and incase u're looping it, you need not worry for the number of fetches, because it brings you all the relevant records having given the condition. &lt;/P&gt;&lt;P&gt;even otherwise, if it's a select to a database table, one select statement will fetch you all the relevant records for the given where/check condition. So both the clauses will bring in ALL the records in ONE go be it a select to a db table / looping an ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;VV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 06:26:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-check-and-where-statement/m-p/3507620#M843651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T06:26:16Z</dc:date>
    </item>
  </channel>
</rss>

