<?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: subquery in a connect statement in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/subquery-in-a-connect-statement/m-p/60138#M17038</link>
    <description>Are both tables, edc_collected_data and Notfound_in_edc_collected, Oracle tables, or is one of them a SAS table?  In this query, they must both be Oracle tables.</description>
    <pubDate>Fri, 07 Jan 2011 16:25:52 GMT</pubDate>
    <dc:creator>advoss</dc:creator>
    <dc:date>2011-01-07T16:25:52Z</dc:date>
    <item>
      <title>subquery in a connect statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/subquery-in-a-connect-statement/m-p/60136#M17036</link>
      <description>I am trying to extract Oracle data but when I use a subquery as a list as follows -&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
 &amp;amp;connect;&lt;BR /&gt;
 create TABLE /*RF300L1.*/D_FAB300_edc_collected1 as&lt;BR /&gt;
 select * from connection to ORACLE &lt;BR /&gt;
 (select * from edc_collected_data &lt;BR /&gt;
  where COL_INS_ID in &lt;BR /&gt;
  (select col_ins_id from Notfound_in_edc_collected));&lt;BR /&gt;
 disconnect from ORACLE;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
but I recieve the following error-&lt;BR /&gt;
&lt;BR /&gt;
ERROR: ORACLE prepare error: ORA-00942: table or view does not exist. SQL statement: select * from edc_collected_data where COL_INS_ID in (select col_ins_id from Notfound_in_edc_collected)</description>
      <pubDate>Fri, 07 Jan 2011 12:03:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/subquery-in-a-connect-statement/m-p/60136#M17036</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-01-07T12:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: subquery in a connect statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/subquery-in-a-connect-statement/m-p/60137#M17037</link>
      <description>Have you checked to ensure that those are the correct file names?  I found it surprising that one ended with _data, while the other didn't.&lt;BR /&gt;
&lt;BR /&gt;
Art</description>
      <pubDate>Fri, 07 Jan 2011 13:26:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/subquery-in-a-connect-statement/m-p/60137#M17037</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-01-07T13:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: subquery in a connect statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/subquery-in-a-connect-statement/m-p/60138#M17038</link>
      <description>Are both tables, edc_collected_data and Notfound_in_edc_collected, Oracle tables, or is one of them a SAS table?  In this query, they must both be Oracle tables.</description>
      <pubDate>Fri, 07 Jan 2011 16:25:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/subquery-in-a-connect-statement/m-p/60138#M17038</guid>
      <dc:creator>advoss</dc:creator>
      <dc:date>2011-01-07T16:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: subquery in a connect statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/subquery-in-a-connect-statement/m-p/60139#M17039</link>
      <description>Hi.&lt;BR /&gt;
It looks like you are using proc sql 's Pass-Through capability.&lt;BR /&gt;
Do you try to use libname statement?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Mon, 10 Jan 2011 01:18:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/subquery-in-a-connect-statement/m-p/60139#M17039</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-01-10T01:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: subquery in a connect statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/subquery-in-a-connect-statement/m-p/60140#M17040</link>
      <description>Thanks advoss! I think that my answer the one in the subquery is a SAS table..&lt;BR /&gt;
&lt;BR /&gt;
sorry checking my threads after a long long tme..</description>
      <pubDate>Wed, 30 Mar 2011 10:40:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/subquery-in-a-connect-statement/m-p/60140#M17040</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-03-30T10:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: subquery in a connect statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/subquery-in-a-connect-statement/m-p/60141#M17041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to use the LIBNAME statement before trying the Pass-Through SQL. Thanks for Google and you. I removed the LIBNAME statement from the Pass_Through and it worked.&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 09:19:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/subquery-in-a-connect-statement/m-p/60141#M17041</guid>
      <dc:creator>hellind</dc:creator>
      <dc:date>2012-05-03T09:19:59Z</dc:date>
    </item>
  </channel>
</rss>

