<?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 stm in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stm/m-p/2344051#M516908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This syntax is used when you have join on multiple tables. To differentiate the &lt;/P&gt;&lt;P&gt;fields from different tables, tables are aliased .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2007 11:23:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-05T11:23:30Z</dc:date>
    <item>
      <title>select stm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stm/m-p/2344046#M516903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT  c&lt;SUB&gt;lifnr   MAX( b&lt;/SUB&gt;eindt )&lt;/P&gt;&lt;P&gt;           SUM( b~menge ) ...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what does this mean?&lt;/P&gt;&lt;P&gt;plz explain me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 11:17:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stm/m-p/2344046#M516903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T11:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: select stm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stm/m-p/2344047#M516904</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;1. It means that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. From the table, there must be field lifnr,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;3. So based on lifnr / grouped by lifnr,&lt;/P&gt;&lt;P&gt;    fetch some numeric values,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. In that, &lt;/P&gt;&lt;P&gt;    against each lifnr,&lt;/P&gt;&lt;P&gt;    we will get 2 numeric values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    a) Maximum of eindt field&lt;/P&gt;&lt;P&gt;    b) sum of menge field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 11:19:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stm/m-p/2344047#M516904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T11:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: select stm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stm/m-p/2344048#M516905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MAX( b~eindt ) - it will get latest date data from database table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM - it will calulate the all the values qty,in thi condition you need to add  group by .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Seshu Maramreddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 11:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stm/m-p/2344048#M516905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T11:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: select stm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stm/m-p/2344049#M516906</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;  You r selecting lifnr from one table for which u have given alias name as 'C', maximum number of eindt this field from a different table and you are summing up the quantity (menge).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Haritha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 11:20:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stm/m-p/2344049#M516906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T11:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: select stm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stm/m-p/2344050#M516907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the problem is i didnt got that MAX and SUM ?&lt;/P&gt;&lt;P&gt;What it will give&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 11:21:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stm/m-p/2344050#M516907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T11:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: select stm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stm/m-p/2344051#M516908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This syntax is used when you have join on multiple tables. To differentiate the &lt;/P&gt;&lt;P&gt;fields from different tables, tables are aliased .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 11:23:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stm/m-p/2344051#M516908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T11:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: select stm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stm/m-p/2344052#M516909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it will sum all menge  by SUM,&lt;/P&gt;&lt;P&gt;and the latest date is got by MAX,&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;prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 11:23:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stm/m-p/2344052#M516909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T11:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: select stm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stm/m-p/2344053#M516910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Max and sum are called aggregate values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Suppose we have &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lifnr  field 1     fiedl2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1     50      45&lt;/P&gt;&lt;P&gt;1     60       100&lt;/P&gt;&lt;P&gt;2     30        10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then for lifnr=1&lt;/P&gt;&lt;P&gt;Max (Maximum) will be 60&lt;/P&gt;&lt;P&gt;Sum (Total) will be 110&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similary for lifnr = 2&lt;/P&gt;&lt;P&gt;Max (Maximum) will be 30&lt;/P&gt;&lt;P&gt;Sum (Total) will be 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 11:24:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stm/m-p/2344053#M516910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T11:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: select stm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stm/m-p/2344054#M516911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well it will select you the lifnr, the max of eindt and the sum of menge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tho its not too clever to sum wher you in first hand do a MAX. Since a MAX will get you ONE record only always.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the "~" symbol secifies that the select will be done down do the DB tables, not using an buffers or chaches or transparent tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 11:25:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stm/m-p/2344054#M516911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T11:25:55Z</dc:date>
    </item>
  </channel>
</rss>

