<?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: Problem with nested select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-nested-select/m-p/4293626#M1024233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write query like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SUM(days) as days objnr2 objnr3........................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this,&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;Santosh Kumar M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Aug 2008 06:41:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-11T06:41:07Z</dc:date>
    <item>
      <title>Problem with nested select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-nested-select/m-p/4293624#M1024231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem setting select structure to calculate the total days from a table .The problem is like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 tables first of which contains 'days' and 'objnr3' fields.objnr3 contains the id's of elements with stufe = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The latter table contains 'objnr2' and 'objnr3' fields but not 'days' and I want to calculate the total days spent on the jobs with stufe = 2 using SELECT SUM(days)....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should I do to have it calculated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit : The latter table is an internal table, not an SQL one and this makes the problem complicated for a beginner .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 06:06:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-nested-select/m-p/4293624#M1024231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-11T06:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with nested select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-nested-select/m-p/4293625#M1024232</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 make a loop on inetrnal table and store all entries with stufe = 2 on another internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;neaxt make select query of DB table using all entries and then sum up the days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 06:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-nested-select/m-p/4293625#M1024232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-11T06:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with nested select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-nested-select/m-p/4293626#M1024233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write query like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SUM(days) as days objnr2 objnr3........................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this,&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;Santosh Kumar M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 06:41:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-nested-select/m-p/4293626#M1024233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-11T06:41:07Z</dc:date>
    </item>
  </channel>
</rss>

