<?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: Subquery in Open SQL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/subquery-in-open-sql/m-p/10723775#M1873376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.63636302948px;"&gt;Hi Kris,&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;I just want to offer an alternative that can be implemented in Open SQL.&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;SELECT &amp;lt;any fields from T1&amp;gt;&amp;nbsp; SUM ( T2~&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;fkbtr) AS&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt; som54 SUM( T3~fkbtr ) &lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;AS som57&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;FROM &lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;fmifiit AS T1 LEFT OUTER JOIN fmifiit AS T2 ON&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T2~&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 11.8181819915771px; font-style: inherit; font-weight: inherit;"&gt;bukrs = T1~bukrs&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11.8181819915771px; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;T2~&lt;/SPAN&gt;kngjahr = &lt;SPAN style="font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;T1~&lt;/SPAN&gt;kngjahr&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11.8181819915771px; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;T2~&lt;/SPAN&gt;knbelnr = &lt;SPAN style="font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;T1~&lt;/SPAN&gt;knbelnr&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11.8181819915771px; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;T2~&lt;/SPAN&gt;knbuzei = &lt;SPAN style="font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;T1~&lt;/SPAN&gt;knbuzei&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11.8181819915771px; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;T2~&lt;/SPAN&gt;wrttp = '54'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;LEFT OUTER JOIN fmifiit AS T3 ON&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T3~&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 11.8181819915771px; font-style: inherit; font-weight: inherit;"&gt;bukrs = T1~bukrs&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11.8181819915771px; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;SPAN style="font-size: 11.8181819915771px;"&gt;T3~&lt;/SPAN&gt;kngjahr = &lt;SPAN style="font-size: 11.8181819915771px;"&gt;T1~&lt;/SPAN&gt;kngjahr&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11.8181819915771px; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;SPAN style="font-size: 11.8181819915771px;"&gt;T3~&lt;/SPAN&gt;knbelnr = &lt;SPAN style="font-size: 11.8181819915771px;"&gt;T1~&lt;/SPAN&gt;knbelnr&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11.8181819915771px; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;SPAN style="font-size: 11.8181819915771px;"&gt;T3~&lt;/SPAN&gt;knbuzei = &lt;SPAN style="font-size: 11.8181819915771px;"&gt;T1~&lt;/SPAN&gt;knbuzei&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11.8181819915771px; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;SPAN style="font-size: 11.8181819915771px;"&gt;T3~&lt;/SPAN&gt;wrttp = '&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;57&lt;/SPAN&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;WHERE ....&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;GROUP BY &lt;SPAN style="font-size: 13.63636302948px;"&gt;&amp;lt;any fields from T1&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;Please note that LEFT OUTER JOIN and GROUP BY need to be used to get the same result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Dec 2014 04:29:24 GMT</pubDate>
    <dc:creator>ec1</dc:creator>
    <dc:date>2014-12-04T04:29:24Z</dc:date>
    <item>
      <title>Subquery in Open SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subquery-in-open-sql/m-p/10723771#M1873372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;in native SQL and in SQL console in the HANA studio, one can write a subquery in the fieldlist of a select-statement:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; select&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; it.fmbelnr,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; pr.zztffc,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; ( select&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum (fkbtr) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from fmifiit where bukrs = it.bukrs &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and kngjahr = it.kngjahr &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and knbelnr = it.knbelnr &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and knbuzei = it.knbuzei&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and wrttp = '54' ) as som54 , &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; ( select&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum (fkbtr) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from fmifiit where bukrs = it.bukrs &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and kngjahr = it.kngjahr &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and knbelnr = it.knbelnr &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and knbuzei = it.knbuzei&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and wrttp = '57' ) as som57 &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;from fmifiit as it&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: courier new,courier;"&gt;...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: courier new,courier;"&gt;where ...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;SPAN style="font-size: 10pt;"&gt;Is there a way to do this in ABAP - OPEN SQL?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt;"&gt;Currently we are in release 7.40 SP04.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks for the info.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt;"&gt;Kris. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 15:04:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subquery-in-open-sql/m-p/10723771#M1873372</guid>
      <dc:creator>former_member185171</dc:creator>
      <dc:date>2014-12-03T15:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Subquery in Open SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subquery-in-open-sql/m-p/10723772#M1873373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can. I just did a search on SCN as well as ingoogle and there are many discussions etc about this. Please do a search before posting a question. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 15:06:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subquery-in-open-sql/m-p/10723772#M1873373</guid>
      <dc:creator>PeterJonker</dc:creator>
      <dc:date>2014-12-03T15:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Subquery in Open SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subquery-in-open-sql/m-p/10723773#M1873374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did a lot of searches,&lt;/P&gt;&lt;P&gt;It's clear in the WHERE-condition. But I don't seem to find the subquery in the &lt;STRONG&gt;field-list&lt;/STRONG&gt; of the select statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 15:20:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subquery-in-open-sql/m-p/10723773#M1873374</guid>
      <dc:creator>former_member185171</dc:creator>
      <dc:date>2014-12-03T15:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Subquery in Open SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subquery-in-open-sql/m-p/10723774#M1873375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I am sorry. My apologies I didn't read your post correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer is NO this can not be done in ABAP. In ABAP you can only have sub queries in the where condition, not in the field list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 15:22:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subquery-in-open-sql/m-p/10723774#M1873375</guid>
      <dc:creator>PeterJonker</dc:creator>
      <dc:date>2014-12-03T15:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Subquery in Open SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subquery-in-open-sql/m-p/10723775#M1873376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.63636302948px;"&gt;Hi Kris,&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;I just want to offer an alternative that can be implemented in Open SQL.&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;SELECT &amp;lt;any fields from T1&amp;gt;&amp;nbsp; SUM ( T2~&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;fkbtr) AS&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt; som54 SUM( T3~fkbtr ) &lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;AS som57&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;FROM &lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;fmifiit AS T1 LEFT OUTER JOIN fmifiit AS T2 ON&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T2~&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 11.8181819915771px; font-style: inherit; font-weight: inherit;"&gt;bukrs = T1~bukrs&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11.8181819915771px; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;T2~&lt;/SPAN&gt;kngjahr = &lt;SPAN style="font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;T1~&lt;/SPAN&gt;kngjahr&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11.8181819915771px; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;T2~&lt;/SPAN&gt;knbelnr = &lt;SPAN style="font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;T1~&lt;/SPAN&gt;knbelnr&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11.8181819915771px; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;T2~&lt;/SPAN&gt;knbuzei = &lt;SPAN style="font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;T1~&lt;/SPAN&gt;knbuzei&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11.8181819915771px; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;T2~&lt;/SPAN&gt;wrttp = '54'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;LEFT OUTER JOIN fmifiit AS T3 ON&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T3~&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 11.8181819915771px; font-style: inherit; font-weight: inherit;"&gt;bukrs = T1~bukrs&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11.8181819915771px; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;SPAN style="font-size: 11.8181819915771px;"&gt;T3~&lt;/SPAN&gt;kngjahr = &lt;SPAN style="font-size: 11.8181819915771px;"&gt;T1~&lt;/SPAN&gt;kngjahr&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11.8181819915771px; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;SPAN style="font-size: 11.8181819915771px;"&gt;T3~&lt;/SPAN&gt;knbelnr = &lt;SPAN style="font-size: 11.8181819915771px;"&gt;T1~&lt;/SPAN&gt;knbelnr&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11.8181819915771px; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;SPAN style="font-size: 11.8181819915771px;"&gt;T3~&lt;/SPAN&gt;knbuzei = &lt;SPAN style="font-size: 11.8181819915771px;"&gt;T1~&lt;/SPAN&gt;knbuzei&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11.8181819915771px; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;SPAN style="font-size: 11.8181819915771px;"&gt;T3~&lt;/SPAN&gt;wrttp = '&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.8181819915771px;"&gt;57&lt;/SPAN&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;WHERE ....&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;GROUP BY &lt;SPAN style="font-size: 13.63636302948px;"&gt;&amp;lt;any fields from T1&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;Please note that LEFT OUTER JOIN and GROUP BY need to be used to get the same result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 04:29:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subquery-in-open-sql/m-p/10723775#M1873376</guid>
      <dc:creator>ec1</dc:creator>
      <dc:date>2014-12-04T04:29:24Z</dc:date>
    </item>
  </channel>
</rss>

