<?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: sql join with different values in different cases in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sql-join-with-different-values-in-different-cases/m-p/427785#M105550</link>
    <description>Thank you!&lt;BR /&gt;</description>
    <pubDate>Mon, 15 Jan 2018 17:54:31 GMT</pubDate>
    <dc:creator>jenim514</dc:creator>
    <dc:date>2018-01-15T17:54:31Z</dc:date>
    <item>
      <title>sql join with different values in different cases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sql-join-with-different-values-in-different-cases/m-p/427783#M105548</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to do a left join with values of variables in the two tables in different cases.&amp;nbsp; I am getting a error when trying to do the upcase in the where statement.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;create table final as&lt;BR /&gt;select a.*, b.LBTO&lt;BR /&gt;from allx as a left lbx as b&lt;BR /&gt;on a.id=b.id where a.upcase(test)=b.upcase(test) and a.upcase(visit)=b.upcase(visit);&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;help appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 17:50:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sql-join-with-different-values-in-different-cases/m-p/427783#M105548</guid>
      <dc:creator>jenim514</dc:creator>
      <dc:date>2018-01-15T17:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: sql join with different values in different cases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sql-join-with-different-values-in-different-cases/m-p/427784#M105549</link>
      <description>&lt;P&gt;The alias always goes with the variable, you've applied it to the function.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Change b.upcase(Test) =&amp;gt; upcase(b.Test)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 15 Jan 2018 17:52:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sql-join-with-different-values-in-different-cases/m-p/427784#M105549</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-15T17:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: sql join with different values in different cases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sql-join-with-different-values-in-different-cases/m-p/427785#M105550</link>
      <description>Thank you!&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Jan 2018 17:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sql-join-with-different-values-in-different-cases/m-p/427785#M105550</guid>
      <dc:creator>jenim514</dc:creator>
      <dc:date>2018-01-15T17:54:31Z</dc:date>
    </item>
  </channel>
</rss>

