<?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 about Join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-join/m-p/4319322#M1029273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all ,I have this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT afko&lt;SUB&gt;aufnr afko&lt;/SUB&gt;gltrp afko&lt;SUB&gt;gstrp aufk&lt;/SUB&gt;objnr afpo&lt;SUB&gt;amein afpo&lt;/SUB&gt;dauat afpo&lt;SUB&gt;dwerk afpo&lt;/SUB&gt;matnr afpo~psmng&lt;/P&gt;&lt;P&gt;       afpo&lt;SUB&gt;wemng resb&lt;/SUB&gt;bdmng resb&lt;SUB&gt;meins mara&lt;/SUB&gt;prdha makt&lt;SUB&gt;maktx marc&lt;/SUB&gt;zzprtnd&lt;/P&gt;&lt;P&gt;INTO   TABLE int_tab&lt;/P&gt;&lt;P&gt;FROM ( afko&lt;/P&gt;&lt;P&gt;       INNER JOIN aufk&lt;/P&gt;&lt;P&gt;       ON aufk&lt;SUB&gt;aufnr = afko&lt;/SUB&gt;aufnr&lt;/P&gt;&lt;P&gt;       INNER JOIN afpo&lt;/P&gt;&lt;P&gt;       ON afpo&lt;SUB&gt;aufnr = afko&lt;/SUB&gt;aufnr&lt;/P&gt;&lt;P&gt;       INNER JOIN resb&lt;/P&gt;&lt;P&gt;       ON resb&lt;SUB&gt;aufnr = afpo&lt;/SUB&gt;aufnr&lt;/P&gt;&lt;P&gt;       INNER JOIN mara&lt;/P&gt;&lt;P&gt;       ON mara&lt;SUB&gt;matnr = afpo&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;       INNER JOIN makt&lt;/P&gt;&lt;P&gt;       ON makt&lt;SUB&gt;matnr = afpo&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;       INNER JOIN marc&lt;/P&gt;&lt;P&gt;       ON marc&lt;SUB&gt;matnr = afpo&lt;/SUB&gt;matnr )&lt;/P&gt;&lt;P&gt;       WHERE afko~gstrp = '20080801'&lt;/P&gt;&lt;P&gt;         AND afpo~dauat = 'ZP01'&lt;/P&gt;&lt;P&gt;         AND afpo~dwerk = '4801'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why there are same records for the same afko~aufnr ?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example, the afko~aufnr  = 1000301&lt;/P&gt;&lt;P&gt;there is only 1 record in afpo when aufnr 1000301&lt;/P&gt;&lt;P&gt;and only 1 record in resb when 1000301.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the code from the query, so I can't modify the code to delete the duplicate record. maybe I should modify the table join, but how should I do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Aug 2008 09:30:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-19T09:30:22Z</dc:date>
    <item>
      <title>about Join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-join/m-p/4319322#M1029273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all ,I have this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT afko&lt;SUB&gt;aufnr afko&lt;/SUB&gt;gltrp afko&lt;SUB&gt;gstrp aufk&lt;/SUB&gt;objnr afpo&lt;SUB&gt;amein afpo&lt;/SUB&gt;dauat afpo&lt;SUB&gt;dwerk afpo&lt;/SUB&gt;matnr afpo~psmng&lt;/P&gt;&lt;P&gt;       afpo&lt;SUB&gt;wemng resb&lt;/SUB&gt;bdmng resb&lt;SUB&gt;meins mara&lt;/SUB&gt;prdha makt&lt;SUB&gt;maktx marc&lt;/SUB&gt;zzprtnd&lt;/P&gt;&lt;P&gt;INTO   TABLE int_tab&lt;/P&gt;&lt;P&gt;FROM ( afko&lt;/P&gt;&lt;P&gt;       INNER JOIN aufk&lt;/P&gt;&lt;P&gt;       ON aufk&lt;SUB&gt;aufnr = afko&lt;/SUB&gt;aufnr&lt;/P&gt;&lt;P&gt;       INNER JOIN afpo&lt;/P&gt;&lt;P&gt;       ON afpo&lt;SUB&gt;aufnr = afko&lt;/SUB&gt;aufnr&lt;/P&gt;&lt;P&gt;       INNER JOIN resb&lt;/P&gt;&lt;P&gt;       ON resb&lt;SUB&gt;aufnr = afpo&lt;/SUB&gt;aufnr&lt;/P&gt;&lt;P&gt;       INNER JOIN mara&lt;/P&gt;&lt;P&gt;       ON mara&lt;SUB&gt;matnr = afpo&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;       INNER JOIN makt&lt;/P&gt;&lt;P&gt;       ON makt&lt;SUB&gt;matnr = afpo&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;       INNER JOIN marc&lt;/P&gt;&lt;P&gt;       ON marc&lt;SUB&gt;matnr = afpo&lt;/SUB&gt;matnr )&lt;/P&gt;&lt;P&gt;       WHERE afko~gstrp = '20080801'&lt;/P&gt;&lt;P&gt;         AND afpo~dauat = 'ZP01'&lt;/P&gt;&lt;P&gt;         AND afpo~dwerk = '4801'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why there are same records for the same afko~aufnr ?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example, the afko~aufnr  = 1000301&lt;/P&gt;&lt;P&gt;there is only 1 record in afpo when aufnr 1000301&lt;/P&gt;&lt;P&gt;and only 1 record in resb when 1000301.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the code from the query, so I can't modify the code to delete the duplicate record. maybe I should modify the table join, but how should I do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 09:30:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-join/m-p/4319322#M1029273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T09:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: about Join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-join/m-p/4319323#M1029274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should add MAKT&lt;SUB&gt;SPRAS = SY-LANGU and MARC&lt;/SUB&gt;WERKS = AFPO~DWERK to the ON-conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even after that, the join on RESB is problematic, since no index is used and any number of RESB entries with a matching AUFNR could be returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 13:21:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-join/m-p/4319323#M1029274</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-08-19T13:21:09Z</dc:date>
    </item>
  </channel>
</rss>

