<?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: Column Found In More Than One Table In The Same Scope in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Found-In-More-Than-One-Table-In-The-Same-Scope/m-p/96436#M8745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See &lt;A __default_attr="31608" __jive_macro_name="thread" class="jive_macro jive_macro_thread" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Dec 2012 15:16:41 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2012-12-11T15:16:41Z</dc:date>
    <item>
      <title>Column Found In More Than One Table In The Same Scope</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Found-In-More-Than-One-Table-In-The-Same-Scope/m-p/96435#M8744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've come across a problem using Enterprise Guide 4.3 and wondered if there was a fix for it, I wonder if you lovely people may be able to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a process that I'm trying to edit to replace one of the base data tables as the table that was being used doesn't contain enough historical data for the report I'm producing. I've used the query builder and swapped out the old table (t1) for the new one (t3). The data types are the same for the fields that I'm using but i'm getting a lot of the error "&lt;SPAN style="color: #ff0000;"&gt;ERROR: Column t3.CompanyNo was found in more than one table in the same scope&lt;/SPAN&gt;." with a lot of the same error for different columns. I've spoken to our resident SAS guru's in our head office but they can only suggest building the report again from scratch (which I'd really rather not do, it took a while to build).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached the code as it's showing with the errors, if anyone could suggest a fix for this it would be fantastic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 15:07:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Found-In-More-Than-One-Table-In-The-Same-Scope/m-p/96435#M8744</guid>
      <dc:creator>RichB</dc:creator>
      <dc:date>2012-12-11T15:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Column Found In More Than One Table In The Same Scope</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Found-In-More-Than-One-Table-In-The-Same-Scope/m-p/96436#M8745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See &lt;A __default_attr="31608" __jive_macro_name="thread" class="jive_macro jive_macro_thread" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 15:16:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Found-In-More-Than-One-Table-In-The-Same-Scope/m-p/96436#M8745</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-12-11T15:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Column Found In More Than One Table In The Same Scope</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Found-In-More-Than-One-Table-In-The-Same-Scope/m-p/96437#M8746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure how the link relates to my issue exactly. I'm fine with duplicate records pulling through (I don't believe they should but I can deal with that issue separately), my issue is that the query won't run at all, I simply get the error message above (as seen in the attached log).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd more than happily go and look at the code again but my lack of SAS code knowledge is not letting me see how to fix my issue with the link supplied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 15:25:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Found-In-More-Than-One-Table-In-The-Same-Scope/m-p/96437#M8746</guid>
      <dc:creator>RichB</dc:creator>
      <dc:date>2012-12-11T15:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Column Found In More Than One Table In The Same Scope</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Found-In-More-Than-One-Table-In-The-Same-Scope/m-p/96438#M8747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recently got this error too on a rather complex set of joins (8 tables).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What fixed it for me was to reset the order of all the joins, especially the left outer joins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck! You can message me if you have more questions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 22:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Found-In-More-Than-One-Table-In-The-Same-Scope/m-p/96438#M8747</guid>
      <dc:creator>Georgetastic</dc:creator>
      <dc:date>2013-04-11T22:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Column Found In More Than One Table In The Same Scope</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Found-In-More-Than-One-Table-In-The-Same-Scope/m-p/96439#M8748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I find the FROM clause a little overwhelming, but one thing I noticed is that after a long series of join, your code contains&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"ON (t3.IntermRef = t8.INT_NEW_AG_NO),CORPDIST.QUOTES_ALL_TEMP_RICH t3 LEFT JOIN SMEQUOTE.SME_PROSPECTS t2"&lt;/P&gt;&lt;P&gt;so you're using CORPDIST.QUOTES_ALL_TEMP_RICH as T3 twice in the same query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could this be a problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp; Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 15:21:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Found-In-More-Than-One-Table-In-The-Same-Scope/m-p/96439#M8748</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2013-04-12T15:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Column Found In More Than One Table In The Same Scope</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Found-In-More-Than-One-Table-In-The-Same-Scope/m-p/390934#M25250</link>
      <description>I had the same problem as original poster RichB and, like Georgetastic, solved it by changing the order of my table joins.&lt;BR /&gt;&lt;BR /&gt;I had a complex query with 9 tables, all of which used left joins. In the query Builder I clicked the "Join Tables" button to open the Tables and Joins window. I moved the tables around on the screen to get a visualization of how the tables were joined. In my case I had one monthly data table at the center of the visualization. The other tables were lookup tables that provided descriptions for the data values in the monthly data table. (I needed left joins because the monthly data table might have new values not found in the lookup tables).&lt;BR /&gt;&lt;BR /&gt;By first joining the monthly data tables to the lookup tables and THEN joining the lookup tables to secondary lookup tables, all the errors went away.&lt;BR /&gt;&lt;BR /&gt;Hope this helps!</description>
      <pubDate>Fri, 25 Aug 2017 15:11:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Found-In-More-Than-One-Table-In-The-Same-Scope/m-p/390934#M25250</guid>
      <dc:creator>FJSchorr2</dc:creator>
      <dc:date>2017-08-25T15:11:49Z</dc:date>
    </item>
  </channel>
</rss>

