<?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 2 tables with Different Field type types in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Join-2-tables-with-Different-Field-type-types/m-p/60133#M6101</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am joining through Query builder. &lt;BR /&gt;
&lt;BR /&gt;
So Table one has AccountNumber (Text)&lt;BR /&gt;
Table two has AccNum(Number)&lt;BR /&gt;
&lt;BR /&gt;
Just wondering how I would do it through there?</description>
    <pubDate>Wed, 11 Aug 2010 09:00:56 GMT</pubDate>
    <dc:creator>thegraduate</dc:creator>
    <dc:date>2010-08-11T09:00:56Z</dc:date>
    <item>
      <title>Join 2 tables with Different Field type types</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Join-2-tables-with-Different-Field-type-types/m-p/60131#M6099</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
Quite a simple one for most, i have two tables with a URN for each, one is a text and one is a number. When i link them, it gives me an error due to invalid field type (ERROR: Expression using equals (=) has components that are of different data types.)&lt;BR /&gt;
&lt;BR /&gt;
How can I convert one of the fields so it is a number?&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Wed, 04 Aug 2010 14:29:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Join-2-tables-with-Different-Field-type-types/m-p/60131#M6099</guid>
      <dc:creator>thegraduate</dc:creator>
      <dc:date>2010-08-04T14:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 tables with Different Field type types</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Join-2-tables-with-Different-Field-type-types/m-p/60132#M6100</link>
      <description>You haven't said how you are doing the joining.&lt;BR /&gt;
&lt;BR /&gt;
However in SAS SQL you can do:&lt;BR /&gt;
&lt;BR /&gt;
create table xxxx as&lt;BR /&gt;
select *&lt;BR /&gt;
from table1 as a, table2 as b&lt;BR /&gt;
where a.urn = input(b.urn,12.);&lt;BR /&gt;
&lt;BR /&gt;
Here I am assuming that table1 has the numeric URN and table2 the character one.</description>
      <pubDate>Wed, 04 Aug 2010 22:49:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Join-2-tables-with-Different-Field-type-types/m-p/60132#M6100</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2010-08-04T22:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 tables with Different Field type types</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Join-2-tables-with-Different-Field-type-types/m-p/60133#M6101</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am joining through Query builder. &lt;BR /&gt;
&lt;BR /&gt;
So Table one has AccountNumber (Text)&lt;BR /&gt;
Table two has AccNum(Number)&lt;BR /&gt;
&lt;BR /&gt;
Just wondering how I would do it through there?</description>
      <pubDate>Wed, 11 Aug 2010 09:00:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Join-2-tables-with-Different-Field-type-types/m-p/60133#M6101</guid>
      <dc:creator>thegraduate</dc:creator>
      <dc:date>2010-08-11T09:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 tables with Different Field type types</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Join-2-tables-with-Different-Field-type-types/m-p/60134#M6102</link>
      <description>I suggest you use the computed column option, and the Advanced Expression Editor to type in the INPUT function as I have already mentioned, to create a new computed column that converts the character column to numeric. Then you should be able to use the new computed column in your join.</description>
      <pubDate>Wed, 11 Aug 2010 22:22:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Join-2-tables-with-Different-Field-type-types/m-p/60134#M6102</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2010-08-11T22:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 tables with Different Field type types</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Join-2-tables-with-Different-Field-type-types/m-p/60135#M6103</link>
      <description>Nice to see a kiwi here lol</description>
      <pubDate>Thu, 12 Aug 2010 01:15:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Join-2-tables-with-Different-Field-type-types/m-p/60135#M6103</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-12T01:15:44Z</dc:date>
    </item>
  </channel>
</rss>

