<?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  and count from table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-count-from-table/m-p/3566586#M858347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keep you internal table like this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : begin of itab occurs 0.
 data : project like zmytable-project.
 data : cnt   type i.
data : end of itab.

Select project count(*) as cnt
from zmytable
into table itab
group by project.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Mar 2008 16:05:56 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2008-03-24T16:05:56Z</dc:date>
    <item>
      <title>select  and count from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-count-from-table/m-p/3566582#M858343</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;I have table with  project end pernr and i wont to count how much&lt;/P&gt;&lt;P&gt;employee  i have for  projects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;pernr        project

123         e0-111
565         e0-111
158         e0-111
145         e1-222
456         e1-222
665         e1-222
222         e1-222
222         e6-777&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wont to get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   e0-111 3 &lt;/P&gt;&lt;P&gt;  e1-222  4&lt;/P&gt;&lt;P&gt;  e6-777  1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2008 15:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-count-from-table/m-p/3566582#M858343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-24T15:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: select  and count from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-count-from-table/m-p/3566583#M858344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select project count(*) as cnt
from zmytable
group by project&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2008 15:47:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-count-from-table/m-p/3566583#M858344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-24T15:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: select  and count from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-count-from-table/m-p/3566584#M858345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i do like u tell and i get just the project in itab the pernr Colman is empty what i miss?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2008 15:58:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-count-from-table/m-p/3566584#M858345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-24T15:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: select  and count from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-count-from-table/m-p/3566585#M858346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's hard to say.  Why don't you select project and pernr without the count and group by, and examine the data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2008 16:04:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-count-from-table/m-p/3566585#M858346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-24T16:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: select  and count from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-count-from-table/m-p/3566586#M858347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keep you internal table like this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : begin of itab occurs 0.
 data : project like zmytable-project.
 data : cnt   type i.
data : end of itab.

Select project count(*) as cnt
from zmytable
into table itab
group by project.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2008 16:05:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-count-from-table/m-p/3566586#M858347</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-03-24T16:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: select  and count from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-count-from-table/m-p/3566587#M858348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 09:10:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-and-count-from-table/m-p/3566587#M858348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-25T09:10:43Z</dc:date>
    </item>
  </channel>
</rss>

