<?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: SAS/ORACLE - INNER JOIN - behaving different for single query in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ORACLE-INNER-JOIN-behaving-different-for-single-query/m-p/485522#M31463</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I submitted the following query but still same issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;libname dblib Oracle USER=abc PASSWORD="123" path=zzz&amp;nbsp;&lt;STRONG&gt;multi_datasrc_opt=in_clause&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql ;&lt;BR /&gt;create table work.x as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select * from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;saswork.id tab1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;oracledb.bigdata&amp;nbsp;(&lt;STRONG&gt;dbmaster=yes&lt;/STRONG&gt;) tab2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;where tab1.ID = tab2.ID;&lt;BR /&gt;quit;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Aug 2018 16:26:31 GMT</pubDate>
    <dc:creator>mahruf</dc:creator>
    <dc:date>2018-08-09T16:26:31Z</dc:date>
    <item>
      <title>SAS/ORACLE - INNER JOIN - behaving different for single query</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ORACLE-INNER-JOIN-behaving-different-for-single-query/m-p/485224#M31443</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;TABLE A &amp;amp; C DATA LOCATED IN&amp;nbsp;ORACLE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;TABLE B DATA LOCATED IN&amp;nbsp;SAS WORK SPACE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;EXAMPLE 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select * from Table a&lt;/P&gt;&lt;P&gt;inner join Table b&lt;/P&gt;&lt;P&gt;on a.ID = b.ID;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above query is translated as the following in Oracle Session;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*SELECT&amp;nbsp; "COL1", "COL2" FROM Table a&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE&amp;nbsp; ( ("ID" IN&amp;nbsp; ( 1191 , 1192 , 1193 , 1194 , 1195 , 1196 , 1197 , 1198 , 1199 , 1200 ) ) )*/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;EXAMPLE 2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select * from Table c&lt;/P&gt;&lt;P&gt;inner join Table b&lt;/P&gt;&lt;P&gt;on c.ID = b.ID;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above query is translated as the following in Oracle Session;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*SELECT&amp;nbsp; "COL1", "COL2" FROM Table c&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE ((("ID"=:"ID") OR (("ID" IS NULL ) AND ( :"ID" IS NULL ))))*/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example 2 has omitted the ID's and shows up differently to Example 1 'WHERE' clause despite the same query.&amp;nbsp;&amp;nbsp; It only happens when I used "&lt;STRONG&gt;Table C&lt;/STRONG&gt;" but all the other table outputs as Example 1 'where' clause.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know why that is happening? What could be the issues?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 17:19:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ORACLE-INNER-JOIN-behaving-different-for-single-query/m-p/485224#M31443</guid>
      <dc:creator>mahruf</dc:creator>
      <dc:date>2018-08-08T17:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ORACLE - INNER JOIN - behaving different for single query</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ORACLE-INNER-JOIN-behaving-different-for-single-query/m-p/485291#M31444</link>
      <description>&lt;P&gt;I believe it's related to how SAS tries to optimize a join between tables in different data sources. This reference, and the linked description of the "DBMASTER" option, may give you some insights.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a002205740.htm" target="_self"&gt;http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a002205740.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 21:17:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ORACLE-INNER-JOIN-behaving-different-for-single-query/m-p/485291#M31444</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2018-08-08T21:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ORACLE - INNER JOIN - behaving different for single query</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ORACLE-INNER-JOIN-behaving-different-for-single-query/m-p/485522#M31463</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I submitted the following query but still same issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;libname dblib Oracle USER=abc PASSWORD="123" path=zzz&amp;nbsp;&lt;STRONG&gt;multi_datasrc_opt=in_clause&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql ;&lt;BR /&gt;create table work.x as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select * from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;saswork.id tab1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;oracledb.bigdata&amp;nbsp;(&lt;STRONG&gt;dbmaster=yes&lt;/STRONG&gt;) tab2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;where tab1.ID = tab2.ID;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 16:26:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-ORACLE-INNER-JOIN-behaving-different-for-single-query/m-p/485522#M31463</guid>
      <dc:creator>mahruf</dc:creator>
      <dc:date>2018-08-09T16:26:31Z</dc:date>
    </item>
  </channel>
</rss>

