<?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: Issue with inner join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-inner-join/m-p/3297419#M789130</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;ANY SUUGESTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jan 2008 18:43:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-11T18:43:58Z</dc:date>
    <item>
      <title>Issue with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-inner-join/m-p/3297418#M789129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 2 tables z1 and z2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;z1 has f1 ,f2 and f3 fields with f1 and f2 as primary keys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and z2 has f4, f2,f3 and f5 fields   with f4 and f2 as primary keys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to get f5 value. I have f1 and f2 values as my input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am retreiving f3 value from z1 based on f1 and f2 and i am using retreived value of f3 from z1 and f2 on z2 to get f5 value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1  a  b   9  &lt;/P&gt;&lt;P&gt;2  a  b   9&lt;/P&gt;&lt;P&gt;3  a  b   8&lt;/P&gt;&lt;P&gt;4  a  b   9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : test LIKE z2.&lt;/P&gt;&lt;P&gt;clear test.&lt;/P&gt;&lt;P&gt;sELECT single b&lt;SUB&gt;f4 b&lt;/SUB&gt;f2 b&lt;SUB&gt;f3 b&lt;/SUB&gt;f5&lt;/P&gt;&lt;P&gt;      INTO test&lt;/P&gt;&lt;P&gt;      FROM z2 AS b INNER JOIN z1 AS a&lt;/P&gt;&lt;P&gt;             ON b&lt;SUB&gt;zf3 = a&lt;/SUB&gt;zf3 AND&lt;/P&gt;&lt;P&gt;                b&lt;SUB&gt;zf2 = a&lt;/SUB&gt;zf2&lt;/P&gt;&lt;P&gt;      WHERE a~f1 = p_f1&lt;/P&gt;&lt;P&gt;      AND a~f2   = p_f2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam  getting 3 record i.e  3  a  b   8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if increase the records in z2 its gives me someother record its picking a random record . I thought that it would bring the first record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2008 17:02:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-inner-join/m-p/3297418#M789129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-11T17:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-inner-join/m-p/3297419#M789130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;ANY SUUGESTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2008 18:43:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-inner-join/m-p/3297419#M789130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-11T18:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-inner-join/m-p/3297420#M789131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please give us more details like how your z1 and z2 tables look like and what is the result you expect out of your inner join?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2008 20:45:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-inner-join/m-p/3297420#M789131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-11T20:45:51Z</dc:date>
    </item>
  </channel>
</rss>

