<?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 in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL/m-p/599487#M76312</link>
    <description>&lt;P&gt;Assuming there is only one row per TICKER value in Ticker_info, try something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table Q9 as 
select 
	a.TIC, 
	b.EXCHCD
from 
	Q_COMP_SHORT10_18 as a left join 
	Ticker_info as b
		on a.TIC = b.TICKER
where b.EXCHCD in (1,3)
group by a.TIC
having count(*) &amp;lt; 3;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 26 Oct 2019 01:03:16 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2019-10-26T01:03:16Z</dc:date>
    <item>
      <title>PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL/m-p/599480#M76311</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having trouble understanding the question below, please check my code. Is it right to use proc sql? if yes what the next step should be?&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*  How many firms having less than 3 rows in Q_COMP_SHORT10_18 and at the same time belonging to EXCHCD of 1 or 3 ;

	proc sql;
	create table Q9
	as select Q_COMP_SHORT10_18.TIC, Ticker_info.EXCHCD
	from Q_COMP_SHORT10_18 left join Ticker_info
	on Q_COMP_SHORT10_18.TIC = Ticker_info.TICKER;
	quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2019 00:03:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL/m-p/599480#M76311</guid>
      <dc:creator>FEFE90</dc:creator>
      <dc:date>2019-10-26T00:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL/m-p/599487#M76312</link>
      <description>&lt;P&gt;Assuming there is only one row per TICKER value in Ticker_info, try something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table Q9 as 
select 
	a.TIC, 
	b.EXCHCD
from 
	Q_COMP_SHORT10_18 as a left join 
	Ticker_info as b
		on a.TIC = b.TICKER
where b.EXCHCD in (1,3)
group by a.TIC
having count(*) &amp;lt; 3;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 26 Oct 2019 01:03:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL/m-p/599487#M76312</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-10-26T01:03:16Z</dc:date>
    </item>
  </channel>
</rss>

