<?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: joining on a computed column in eg in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/joining-on-a-computed-column-in-eg/m-p/91992#M8527</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Patrick. This worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2012 16:51:57 GMT</pubDate>
    <dc:creator>oldschool</dc:creator>
    <dc:date>2012-06-26T16:51:57Z</dc:date>
    <item>
      <title>joining on a computed column in eg</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/joining-on-a-computed-column-in-eg/m-p/91989#M8524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a sql query which I am trying to convert to sas eg's visual interface. The query uses an inner join between the two tables, but the column on which I'm joining from table 1 is a computed column. The from statement looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM table1 t1 INNER JOIN table2 t2 ON (year (table1.calldate) = table2.year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not find a way to do this in one visual query in EG. Computed columns don't show up in the joins dialog box, and the filter section of the joins dialog box seems to be that.... a filter, not a way to create a new column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do his, or does EG require that table 1 is pre-querying to create the year(table1.calldate) field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice would be much appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 12:00:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/joining-on-a-computed-column-in-eg/m-p/91989#M8524</guid>
      <dc:creator>oldschool</dc:creator>
      <dc:date>2012-06-26T12:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: joining on a computed column in eg</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/joining-on-a-computed-column-in-eg/m-p/91990#M8525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It isn't possible to put computed column into "ON" when joinning talbe. The simple way is just to add a piece of code before joinning tables,&lt;/P&gt;&lt;P&gt;such as:&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create view table1_1 as&lt;/P&gt;&lt;P&gt;select table1.*, year(calldate)as year&lt;/P&gt;&lt;P&gt;from table1;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 14:06:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/joining-on-a-computed-column-in-eg/m-p/91990#M8525</guid>
      <dc:creator>QLi</dc:creator>
      <dc:date>2012-06-26T14:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: joining on a computed column in eg</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/joining-on-a-computed-column-in-eg/m-p/91991#M8526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A work-around is to use a implicit SQL join:&lt;/P&gt;&lt;P&gt;FROM table1 t1, table2 t2 WHERE (year (t1.calldate) = t2.year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this you just add the 2 tables in the query builder with no join at all, then add in the "Filter Data" tab your "where condition".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 15:16:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/joining-on-a-computed-column-in-eg/m-p/91991#M8526</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-06-26T15:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: joining on a computed column in eg</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/joining-on-a-computed-column-in-eg/m-p/91992#M8527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Patrick. This worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 16:51:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/joining-on-a-computed-column-in-eg/m-p/91992#M8527</guid>
      <dc:creator>oldschool</dc:creator>
      <dc:date>2012-06-26T16:51:57Z</dc:date>
    </item>
  </channel>
</rss>

