<?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: understanding concepts of EXCEPT, ALL, CORR in Proc SQL in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/understanding-concepts-of-EXCEPT-ALL-CORR-in-Proc-SQL/m-p/72715#M21077</link>
    <description>Based on my knowledge.&lt;BR /&gt;
All means keep all the duplicated observation and corresponding means matched with the same column.&lt;BR /&gt;
So once you use all ,then sql will keep duplicated obs, there is only one "1 10" deleted.If you remove all or delete one of "1 10" ,then you will get what you want.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
    <pubDate>Tue, 07 Jun 2011 01:37:00 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2011-06-07T01:37:00Z</dc:date>
    <item>
      <title>understanding concepts of EXCEPT, ALL, CORR in Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/understanding-concepts-of-EXCEPT-ALL-CORR-in-Proc-SQL/m-p/72713#M21075</link>
      <description>Suppose I have this for my data and program&lt;BR /&gt;
&lt;BR /&gt;
data a;&lt;BR /&gt;
input x y;&lt;BR /&gt;
cards;&lt;BR /&gt;
1 10&lt;BR /&gt;
1 10&lt;BR /&gt;
2 200&lt;BR /&gt;
3 30&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data b;&lt;BR /&gt;
input x z ;&lt;BR /&gt;
cards;&lt;BR /&gt;
1 100&lt;BR /&gt;
2 200&lt;BR /&gt;
2 200&lt;BR /&gt;
4 400&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
  select * from a&lt;BR /&gt;
  except  all corr&lt;BR /&gt;
  select * from b;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
the results will be X with values 1 and 3.  My question is how come the 1 will show up and only once if ALL and CORR are used.</description>
      <pubDate>Sun, 05 Jun 2011 14:11:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/understanding-concepts-of-EXCEPT-ALL-CORR-in-Proc-SQL/m-p/72713#M21075</guid>
      <dc:creator>KyleS83</dc:creator>
      <dc:date>2011-06-05T14:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: understanding concepts of EXCEPT, ALL, CORR in Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/understanding-concepts-of-EXCEPT-ALL-CORR-in-Proc-SQL/m-p/72714#M21076</link>
      <description>See &lt;I&gt;SQL Set Operators: So Handy Venn You Need Them&lt;/I&gt; (http://howles.com/saspapers/242-31/242-31.pdf).</description>
      <pubDate>Sun, 05 Jun 2011 15:00:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/understanding-concepts-of-EXCEPT-ALL-CORR-in-Proc-SQL/m-p/72714#M21076</guid>
      <dc:creator>Howles</dc:creator>
      <dc:date>2011-06-05T15:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: understanding concepts of EXCEPT, ALL, CORR in Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/understanding-concepts-of-EXCEPT-ALL-CORR-in-Proc-SQL/m-p/72715#M21077</link>
      <description>Based on my knowledge.&lt;BR /&gt;
All means keep all the duplicated observation and corresponding means matched with the same column.&lt;BR /&gt;
So once you use all ,then sql will keep duplicated obs, there is only one "1 10" deleted.If you remove all or delete one of "1 10" ,then you will get what you want.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Tue, 07 Jun 2011 01:37:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/understanding-concepts-of-EXCEPT-ALL-CORR-in-Proc-SQL/m-p/72715#M21077</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-06-07T01:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: understanding concepts of EXCEPT, ALL, CORR in Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/understanding-concepts-of-EXCEPT-ALL-CORR-in-Proc-SQL/m-p/72716#M21078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H2 style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #000000; background-color: #fffff0;"&gt;Using the Keyword CORR with the EXCEPT Operator&lt;/H2&gt;&lt;P style="color: #000000; font-family: Arial, Helvetica, sans-serif; background-color: #fffff0;"&gt;To display both of the following&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;only columns that have the &lt;STRONG&gt;same&lt;/STRONG&gt;&lt;STRONG&gt;name&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;all &lt;STRONG&gt;unique&lt;/STRONG&gt;&lt;STRONG&gt;rows&lt;/STRONG&gt; in the &lt;STRONG&gt;first&lt;/STRONG&gt; table that do &lt;STRONG&gt;not&lt;/STRONG&gt; appear in the &lt;STRONG&gt;second&lt;/STRONG&gt; table&lt;/LI&gt;&lt;LI&gt;These are the outputs you generate with various combinations &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;EXCEPT&amp;nbsp; Except ALL&amp;nbsp;&amp;nbsp;&amp;nbsp; EXCEPT all corr&lt;/P&gt;&lt;P&gt;x&amp;nbsp;&amp;nbsp; y&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp; y&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;3&amp;nbsp; 30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp; 30&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Jun 2013 21:05:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/understanding-concepts-of-EXCEPT-ALL-CORR-in-Proc-SQL/m-p/72716#M21078</guid>
      <dc:creator>adibhatl018</dc:creator>
      <dc:date>2013-06-08T21:05:30Z</dc:date>
    </item>
  </channel>
</rss>

