<?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: Inner Join Select query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-select-query/m-p/4632351#M1090871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bhanu,&lt;/P&gt;&lt;P&gt;Do you face any performance issue? Query looks good now, further you can refer to following threads to know more on JOIN-&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6612615"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ec77446011d189700000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ec77446011d189700000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Nishikant Kumbhar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jan 2009 00:33:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-07T00:33:41Z</dc:date>
    <item>
      <title>Inner Join Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-select-query/m-p/4632349#M1090869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;Below is a inner join query &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT a&lt;SUB&gt;ebeln a&lt;/SUB&gt;ebelp a&lt;SUB&gt;packno b&lt;/SUB&gt;zekkn b~ps_psp_pnr&lt;/P&gt;&lt;P&gt;                 FROM ( ( ekpo AS a INNER JOIN ekkn AS b&lt;/P&gt;&lt;P&gt;                          ON a&lt;SUB&gt;ebeln = b&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;                          AND  a&lt;SUB&gt;ebelp = b&lt;/SUB&gt;ebelp )&lt;/P&gt;&lt;P&gt;                         INNER JOIN prps AS c&lt;/P&gt;&lt;P&gt;                          ON b&lt;SUB&gt;ps_psp_pnr = c&lt;/SUB&gt;pspnr )&lt;/P&gt;&lt;P&gt;                 INTO TABLE t_wbspo&lt;/P&gt;&lt;P&gt;                  WHERE a~ebeln IN s_ebeln&lt;/P&gt;&lt;P&gt;                   AND  c~psphi IN s_psphi&lt;/P&gt;&lt;P&gt;                   AND  stufe = c_task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to modify this select and put one more join on ekkn-aufnr &lt;/P&gt;&lt;P&gt;and aufk-afunr .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now for this i write the below code &lt;/P&gt;&lt;P&gt;  SELECT a&lt;SUB&gt;ebeln a&lt;/SUB&gt;ebelp a&lt;SUB&gt;packno b&lt;/SUB&gt;zekkn b&lt;SUB&gt;ps_psp_pnr b&lt;/SUB&gt;aufnr&lt;/P&gt;&lt;P&gt;           FROM ( ( ( ekpo AS a INNER JOIN ekkn AS b&lt;/P&gt;&lt;P&gt;                    ON a&lt;SUB&gt;ebeln = b&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;                    AND  a&lt;SUB&gt;ebelp = b&lt;/SUB&gt;ebelp )&lt;/P&gt;&lt;P&gt;                   INNER JOIN prps AS c&lt;/P&gt;&lt;P&gt;                    ON b&lt;SUB&gt;ps_psp_pnr = c&lt;/SUB&gt;pspnr )&lt;/P&gt;&lt;P&gt;                    INNER JOIN aufk AS d&lt;/P&gt;&lt;P&gt;                    ON b&lt;SUB&gt;aufnr = d&lt;/SUB&gt;aufnr )&lt;/P&gt;&lt;P&gt;           INTO TABLE t_wbspo&lt;/P&gt;&lt;P&gt;            WHERE a~ebeln IN s_ebeln&lt;/P&gt;&lt;P&gt;             AND  c~psphi IN s_psphi&lt;/P&gt;&lt;P&gt;             AND  d~aufnr IN s_aufnr&lt;/P&gt;&lt;P&gt;    AND  stufe = c_task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the above way does it puts a join on ekkn-aufnr and aufk-aufnr ?&lt;/P&gt;&lt;P&gt;Is the above way the right way to do it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please confirm &lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 04:32:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-select-query/m-p/4632349#M1090869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T04:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-select-query/m-p/4632350#M1090870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try your code it is the right way to join the table and it does join   on ekkn-aufnr and aufk-aufnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Midhun Abraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 04:41:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-select-query/m-p/4632350#M1090870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T04:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-select-query/m-p/4632351#M1090871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bhanu,&lt;/P&gt;&lt;P&gt;Do you face any performance issue? Query looks good now, further you can refer to following threads to know more on JOIN-&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6612615"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ec77446011d189700000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ec77446011d189700000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Nishikant Kumbhar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 00:33:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-select-query/m-p/4632351#M1090871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T00:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-select-query/m-p/4632352#M1090872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bhanu,&lt;/P&gt;&lt;P&gt;After your code changes you can check for SQL trace to know which one is giving better result.&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Nishikant Kumbhar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 00:37:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-select-query/m-p/4632352#M1090872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T00:37:54Z</dc:date>
    </item>
  </channel>
</rss>

