<?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/2036768#M418418</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;Use this to get used to joins:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb39c4358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb39c4358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the total count of the records you can use the system field SY-TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hpoe this helps,&lt;/P&gt;&lt;P&gt;Sudhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2007 00:13:28 GMT</pubDate>
    <dc:creator>sudhindra_chandrashekar</dc:creator>
    <dc:date>2007-03-15T00:13:28Z</dc:date>
    <item>
      <title>Select count (*)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/2036767#M418417</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;I have got 3 tables to select data from, how can I join them, and also need to check a field on each table,get the total count of the records!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bharat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 23:37:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/2036767#M418417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-14T23:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select count (*)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/2036768#M418418</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;Use this to get used to joins:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb39c4358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb39c4358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the total count of the records you can use the system field SY-TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hpoe this helps,&lt;/P&gt;&lt;P&gt;Sudhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 00:13:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/2036768#M418418</guid>
      <dc:creator>sudhindra_chandrashekar</dc:creator>
      <dc:date>2007-03-15T00:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select count (*)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/2036769#M418419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is how you Join 3 tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MARA. MAKT, MARC are the tables to join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;matnr b&lt;/SUB&gt;aedat b&lt;SUB&gt;maktx c&lt;/SUB&gt;werks&lt;/P&gt;&lt;P&gt;from ( mara as a inner join makt as b&lt;/P&gt;&lt;P&gt;         on b&lt;SUB&gt;matnr = a&lt;/SUB&gt;matnr )&lt;/P&gt;&lt;P&gt;        inner join marc as c&lt;/P&gt;&lt;P&gt;        on c&lt;SUB&gt;matnr = a&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;into table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For joining more than two tables, the result set of a join of two tables has to be joined to the third and the same continues for more tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the total number of records of field, you can use the System defined data object SY-DBCNT after the select statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 01:45:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/2036769#M418419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T01:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Select count (*)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/2036770#M418420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have proper key for select then go for join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other wise&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make 3 separate select and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use describe command to count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 01:57:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/2036770#M418420</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-03-15T01:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select count (*)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/2036771#M418421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats done. Thanks for all inputs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 21:39:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-count/m-p/2036771#M418421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T21:39:22Z</dc:date>
    </item>
  </channel>
</rss>

