<?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 Count in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977917#M400441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Tom,&lt;/P&gt;&lt;P&gt;   Yes, that is its primary usage. To be precise, it gives the number of matches for the current where clause.&lt;/P&gt;&lt;P&gt;no need to check. It essentially does the same.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Feb 2007 15:38:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-28T15:38:55Z</dc:date>
    <item>
      <title>Select Count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977912#M400436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am assuming this is basically use for finding the number of entries in a DB table...any other comon uses?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should sy-dbcnt be checked when using this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         Thank-You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 15:34:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977912#M400436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T15:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select Count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977913#M400437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SY-DBCNT will give u no of entries return by your select statement, if u put select * the sy-dbcnt will contain how many entries in DB table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 15:37:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977913#M400437</guid>
      <dc:creator>alex_m</dc:creator>
      <dc:date>2007-02-28T15:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Select Count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977914#M400438</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;sy-dbcnt - total no of database records .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Smithi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 15:38:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977914#M400438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T15:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Select Count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977915#M400439</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;Sy-Dbcnt is used only for count the total no of records in db table.&lt;/P&gt;&lt;P&gt;No,&lt;/P&gt;&lt;P&gt;not for any orther uses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreevani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 15:38:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977915#M400439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T15:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Select Count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977916#M400440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello TOM,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SY-DBCNT - DB operations, number of table lines processed&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 15:38:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977916#M400440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T15:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select Count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977917#M400441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Tom,&lt;/P&gt;&lt;P&gt;   Yes, that is its primary usage. To be precise, it gives the number of matches for the current where clause.&lt;/P&gt;&lt;P&gt;no need to check. It essentially does the same.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 15:38:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977917#M400441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T15:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select Count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977918#M400442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So checking sy-dbcnt is same as COUNT.&lt;/P&gt;&lt;P&gt;So my basic question is still what would I use COUNT for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 15:40:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977918#M400442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T15:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Select Count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977919#M400443</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;Sy-dbcnt will give the no. of records fetched from the database.&lt;/P&gt;&lt;P&gt;i.e Number of &amp;lt;b&amp;gt;processed table rows&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-DBCNT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL statements set the content of SY-DBCNT to the number of database lines processed. With SELECT loops in Open SQL, SY-DBCNT is set after the ENDSELECT statement. In Native SQL, SY-DBCNT is set after the ENDEXEC statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE sets SY-DBCNT to the number of lines deleted.&lt;/P&gt;&lt;P&gt;FETCH sets SY-DBCNT to the number of lines already read by the current cursor.&lt;/P&gt;&lt;P&gt;INSERT sets SY-DBCNT to the number of lines inserted.&lt;/P&gt;&lt;P&gt;MODIFY sets SY-DBCNT to the number of lines processed.&lt;/P&gt;&lt;P&gt;UPDATE sets SY-DBCNT to the number of lines changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;count&amp;lt;/b&amp;gt; gives the total number of records present in the database table&lt;/P&gt;&lt;P&gt;Apart from that no other use as such&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clears your doubt.&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saumya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 15:42:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977919#M400443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T15:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select Count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977920#M400444</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;count Returns the number of lines selected.&lt;/P&gt;&lt;P&gt;sy-dbcnt DB operations, number of table lines processed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sruthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 15:48:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977920#M400444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T15:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select Count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977921#M400445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Saumya, Thanks you say..count gives the total number of records present in the database table, Apart from that no other use as such.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where does it give the total no of records? in sy-dbcnt, because I check this without using COUNT.&lt;/P&gt;&lt;P&gt;     Thanks everybody all feedback is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 15:53:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977921#M400445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T15:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Select Count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977922#M400446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally u got a answer, example. Count function u can use for particular col name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT COUNT( CARRID )&lt;/P&gt;&lt;P&gt;       INTO COUNT FROM SPFLI&lt;/P&gt;&lt;P&gt;       WHERE&lt;/P&gt;&lt;P&gt;         CITYTO = 'NEW YORK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / COUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For performance concern not advaisable to use COUNT statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 16:08:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/1977922#M400446</guid>
      <dc:creator>alex_m</dc:creator>
      <dc:date>2007-02-28T16:08:54Z</dc:date>
    </item>
  </channel>
</rss>

