<?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: PROC SQL Joins in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-Joins/m-p/297467#M312131</link>
    <description>&lt;P&gt;Is it just a syntax problem&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc sql;
create table want as
select *
from 
	have as hv left join 
	table1(where=(var1 ne .)) as tab1 on tab1.ID=hv.ID left join...
where ...;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Sep 2016 17:54:40 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2016-09-09T17:54:40Z</dc:date>
    <item>
      <title>PROC SQL Joins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-Joins/m-p/297460#M312129</link>
      <description>&lt;P&gt;Hello Team,,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have several left joins as shown and while joining i want to write a condition so unwanted records are not coming up in the final output.&lt;/P&gt;&lt;P&gt;I cant at the same time remove thoswe after the joins are made because then it might remove some of the records we want to keep&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc sql;&lt;/P&gt;&lt;P&gt;create table want as&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from have as hv&lt;/P&gt;&lt;P&gt;left join table1 as tab1(&lt;EM&gt;&lt;STRONG&gt;where=var1 ne .&lt;/STRONG&gt;&lt;/EM&gt;))&amp;nbsp;&amp;nbsp;on tab1.ID=hv.ID&lt;/P&gt;&lt;P&gt;left join...&lt;/P&gt;&lt;P&gt;left join....&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 17:06:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-Joins/m-p/297460#M312129</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2016-09-09T17:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Joins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-Joins/m-p/297464#M312130</link>
      <description>&lt;P&gt;Ok. You haven't provided enough details to understand what you're having issues with or what you need help with.&lt;/P&gt;
&lt;P&gt;Please post sample input/output data as well as details of how you want your filter to work and why WHERE clauses or ON isn't working.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 17:37:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-Joins/m-p/297464#M312130</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-09T17:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Joins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-Joins/m-p/297467#M312131</link>
      <description>&lt;P&gt;Is it just a syntax problem&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc sql;
create table want as
select *
from 
	have as hv left join 
	table1(where=(var1 ne .)) as tab1 on tab1.ID=hv.ID left join...
where ...;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 17:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-Joins/m-p/297467#M312131</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-09-09T17:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Joins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-Joins/m-p/297468#M312132</link>
      <description>&lt;P&gt;Besides mismatched )&lt;/P&gt;
&lt;P&gt;This part&lt;/P&gt;
&lt;P&gt;left join table1 as tab1(&lt;EM&gt;&lt;STRONG&gt;where=var1 ne .&lt;/STRONG&gt;&lt;/EM&gt;))&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;maybe should be&lt;/P&gt;
&lt;P&gt;left join (select * from table1 &lt;STRONG&gt;&lt;EM&gt;where=var1 ne .&lt;/EM&gt;&lt;/STRONG&gt; )&amp;nbsp;as tab1 &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 17:56:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-Joins/m-p/297468#M312132</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-09-09T17:56:17Z</dc:date>
    </item>
  </channel>
</rss>

