<?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: SAS SQL on/where clauses in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-SQL-on-where-clauses/m-p/703147#M25977</link>
    <description>&lt;P&gt;Using a WHERE in SQL is equivalent to an inner join.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Dec 2020 16:24:52 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-12-02T16:24:52Z</dc:date>
    <item>
      <title>SAS SQL on/where clauses</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-SQL-on-where-clauses/m-p/703127#M25973</link>
      <description>&lt;PRE&gt;proc sql;&lt;BR /&gt;	create table inner_one As &lt;BR /&gt;	select g.stu_id, score1, score3 &lt;BR /&gt;	from score_data_g as g inner join &lt;BR /&gt;		score_data_ng as ng &lt;BR /&gt;		on g.stu_id=ng.stu_id;&lt;BR /&gt;/* on score_data_g.stu_id = score_data_ng.stu_id; */&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;	create table inner_one As &lt;BR /&gt;	select g.stu_id, score1, score3 &lt;BR /&gt;	from score_data_g as g, &lt;BR /&gt;		score_data_ng as ng &lt;BR /&gt;/* 		where g.stu_id=ng.stu_id; */&lt;BR /&gt;/* where score_data_g.stu_id = score_data_ng.stu_id; */&lt;BR /&gt;where g.stu_id = ng.stu_id;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In two codes above, the on clause in inner join can be replaced by the where clause. But it does not work for outer join &lt;BR /&gt;(left, right and full join). In both the where clause and the inner join, it seems that order of two datasets does &lt;BR /&gt;not make different. &lt;BR /&gt;&lt;BR /&gt;Does this correct?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 16:08:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-SQL-on-where-clauses/m-p/703127#M25973</guid>
      <dc:creator>anming</dc:creator>
      <dc:date>2020-12-02T16:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SQL on/where clauses</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-SQL-on-where-clauses/m-p/703141#M25975</link>
      <description>Code blocks are for code, not your question. &lt;BR /&gt;You may want to define what you mean by "WORK" here, because the code will run and execute without errors. You may be able to replace your ON with WHERE but it may not be as simple as just changing ON to WHERE.</description>
      <pubDate>Wed, 02 Dec 2020 16:10:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-SQL-on-where-clauses/m-p/703141#M25975</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-12-02T16:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SQL on/where clauses</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-SQL-on-where-clauses/m-p/703147#M25977</link>
      <description>&lt;P&gt;Using a WHERE in SQL is equivalent to an inner join.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 16:24:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-SQL-on-where-clauses/m-p/703147#M25977</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-12-02T16:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SQL on/where clauses</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-SQL-on-where-clauses/m-p/708697#M26605</link>
      <description>&lt;P&gt;For an inner join of two data sets "on" clause is used and two data sets are listed with "inner join" but for 'where' two data sets are separated by a comma.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 03:30:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-SQL-on-where-clauses/m-p/708697#M26605</guid>
      <dc:creator>anming</dc:creator>
      <dc:date>2020-12-30T03:30:35Z</dc:date>
    </item>
  </channel>
</rss>

