<?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: Join condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-condition/m-p/885477#M52394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhakaran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on your requirement whihjoin type you should use. However, I guess you require LEFT OUTER JOIN where DBSTATORA is the left side table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information on JOIN, you can visit &amp;lt;a href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb39c4358411d1829f0000e829fbfe/content.htm"&amp;gt;here&amp;lt;/a&amp;gt;.&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;*--Serdar &amp;lt;a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d"&amp;gt;[ BC ]&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2005 00:11:37 GMT</pubDate>
    <dc:creator>ssimsekler</dc:creator>
    <dc:date>2005-06-08T00:11:37Z</dc:date>
    <item>
      <title>Join condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-condition/m-p/885476#M52393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a database table dbstatora with fields &lt;/P&gt;&lt;P&gt;TNAME --&amp;gt; Table Name&lt;/P&gt;&lt;P&gt;ANDAT --&amp;gt; Analyzing Date&lt;/P&gt;&lt;P&gt;AMETH --&amp;gt; Analysis method for collecting Statistics&lt;/P&gt;&lt;P&gt;NROWS --&amp;gt; No of rows in a table&lt;/P&gt;&lt;P&gt;OCCBL --&amp;gt; Used blk(size) of table in KB&lt;/P&gt;&lt;P&gt;EMPBL --&amp;gt; Empty blk(size) of table in KB&lt;/P&gt;&lt;P&gt;AFREE --&amp;gt; Avg Freespace in a used db block&lt;/P&gt;&lt;P&gt;INDBS --&amp;gt; Used Blk(size) of an index kb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And another table RSTSODS&lt;/P&gt;&lt;P&gt;The fields of this table is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODSNAME&lt;/P&gt;&lt;P&gt;VERSION&lt;/P&gt;&lt;P&gt;ODSNAME_TECH&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to join these two tables and display the result with these fields, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODSNAME, TNAME(/BIC/A%, /BI0/A% ,/BIC/B%, /BI0/B%) and  all the fields of DBSTATTORA, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The common field for these two TABLES is &lt;/P&gt;&lt;P&gt;TNAME in DBSTATTORA = /BIC/B% OR /BI0/B%&lt;/P&gt;&lt;P&gt;ODSNAME_TECH in RSTSODS = /BIC/B% /BI0/B%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried inner join it doesn't work, which join should i use to display my result as specified above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be of great help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2005 21:23:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-condition/m-p/885476#M52393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-07T21:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Join condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-condition/m-p/885477#M52394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhakaran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on your requirement whihjoin type you should use. However, I guess you require LEFT OUTER JOIN where DBSTATORA is the left side table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information on JOIN, you can visit &amp;lt;a href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb39c4358411d1829f0000e829fbfe/content.htm"&amp;gt;here&amp;lt;/a&amp;gt;.&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;*--Serdar &amp;lt;a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d"&amp;gt;[ BC ]&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2005 00:11:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-condition/m-p/885477#M52394</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-06-08T00:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Join condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-condition/m-p/885478#M52395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Serder,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks it really helped me, but still i am not able to display the results as how i wanted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2005 00:35:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-condition/m-p/885478#M52395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-08T00:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Join condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-condition/m-p/885479#M52396</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;  Try selecting the records using 'For all entries' of first table with the common fields in the where condition, this might work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2005 06:05:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-condition/m-p/885479#M52396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-08T06:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Join condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-condition/m-p/885480#M52397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhakaran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not try at the system but you can try: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT a~tname a~andat a~ameth
       a~nrows a~occbl a~empbl
       a~afree a~indbs b~odsname
       FROM dbstatora AS a
       LEFT OUTER JOIN rstsods
         ON a~tname = b~odsname_tech
       INTO TABLE gt_itab .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this does not give the output you require, are you sure about the result you expect can be gathered via the join condition?&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;*--Serdar &amp;lt;a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d"&amp;gt;[ BC ]&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2005 08:22:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-condition/m-p/885480#M52397</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-06-08T08:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Join condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-condition/m-p/885481#M52398</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;I tried the way u sent but it displays all the tables names of ods i.e only the change log tables but i also want to display the tables names of active data and new data tables of ods. So what i did is i created a view based on DBSTATTORA and RSTSODS. This view displays all the change log table names of ods for that particular ods. Now i am using this view and the table DBSTATTORA joining it so that i can display all the tables of ods object. In the join condition if i do left outer join of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  D&lt;SUB&gt;TNAME D&lt;/SUB&gt;ANDAT D&lt;SUB&gt;NROWS D&lt;/SUB&gt;OCCBL D&lt;SUB&gt;EMPBL D&lt;/SUB&gt;AFREE D~INDBS&lt;/P&gt;&lt;P&gt;        V~ODSNAME UP TO 30 ROWS&lt;/P&gt;&lt;P&gt;INTO (WD-TNAME, WD-ANDAT, WD-NROWS, WD-OCCBL, WD-EMPBL, WD-AFREE,&lt;/P&gt;&lt;P&gt;       WD-INDBS, WV-ODSNAME)&lt;/P&gt;&lt;P&gt;FROM DBSTATTORA AS D LEFT JOIN ZOBTODS_VW AS V&lt;/P&gt;&lt;P&gt;     ON D&lt;SUB&gt;TNAME = V&lt;/SUB&gt;TNAME&lt;/P&gt;&lt;P&gt;WHERE  D~NROWS &amp;gt; 50000&lt;/P&gt;&lt;P&gt;AND   D&lt;SUB&gt;TNAME LIKE '/BIC/A%' OR D&lt;/SUB&gt;TNAME LIKE '/BI0/A%' OR&lt;/P&gt;&lt;P&gt;D&lt;SUB&gt;TNAME LIKE '/BIC/B%' OR D&lt;/SUB&gt;TNAME LIKE '/BI0/B%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This displays only the /bic/A* and /bio/a* tables, &lt;/P&gt;&lt;P&gt; I think by seeing this code u would have got it. Any suggestions or help will be of great help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2005 18:37:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-condition/m-p/885481#M52398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-08T18:37:58Z</dc:date>
    </item>
  </channel>
</rss>

