<?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: syntax error in PROC SQL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/syntax-error-in-PROC-SQL/m-p/299150#M63019</link>
    <description>&lt;P&gt;You use alias in your select clause (p/c/s) but don't assign any aliases to your tables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS it's usually more efficient to specify join type and use ON rather than WHERE.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Sep 2016 10:42:34 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-09-18T10:42:34Z</dc:date>
    <item>
      <title>syntax error in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/syntax-error-in-PROC-SQL/m-p/299149#M63018</link>
      <description>&lt;P&gt;Hi everybody.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where is the syntax error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SELECT p.*,c.unicost,s.quantity&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM product,cost,sales&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE product.item = cost.item AND product.item = sales.item;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards, Cons.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2016 10:37:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/syntax-error-in-PROC-SQL/m-p/299149#M63018</guid>
      <dc:creator>cons</dc:creator>
      <dc:date>2016-09-18T10:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/syntax-error-in-PROC-SQL/m-p/299150#M63019</link>
      <description>&lt;P&gt;You use alias in your select clause (p/c/s) but don't assign any aliases to your tables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS it's usually more efficient to specify join type and use ON rather than WHERE.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2016 10:42:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/syntax-error-in-PROC-SQL/m-p/299150#M63019</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-18T10:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/syntax-error-in-PROC-SQL/m-p/299177#M63028</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt;,&amp;nbsp;I agree with your diagnostic of OP's syntax error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, a simple WHERE clause is just as efficient as the ON clause of an INNER JOIN. One is simply translated into the other, when possible. I do prefer the JOIN syntax because it is more explicit, but it isn't more efficient.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2016 20:11:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/syntax-error-in-PROC-SQL/m-p/299177#M63028</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-09-18T20:11:33Z</dc:date>
    </item>
  </channel>
</rss>

