<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>philihp.com &#187; Count</title>
	<atom:link href="http://www.philihp.com/blog/tag/count/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.philihp.com/blog</link>
	<description>I do things, and then I tell the internet about them.</description>
	<lastBuildDate>Mon, 06 Feb 2012 05:40:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Counting distinct variables in SQL with SAS</title>
		<link>http://www.philihp.com/blog/2009/counting-distinct-variables-in-sql/</link>
		<comments>http://www.philihp.com/blog/2009/counting-distinct-variables-in-sql/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 06:44:45 +0000</pubDate>
		<dc:creator>philihp</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Count]]></category>
		<category><![CDATA[Distinct]]></category>
		<category><![CDATA[SAS]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.philihp.com/blog/?p=504</guid>
		<description><![CDATA[One way to get the count of distinct variables, which works in most flavors of SQL, is to use a subquery. For instance, in Oracle this is: SELECT count(SELECT DISTINCT foo FROM table) FROM dual In SAS, using PROC SQL, you can do that too, but you can also simply do this: SELECT count(distinct foo) [...]]]></description>
			<content:encoded><![CDATA[<p>One way to get the count of distinct variables, which works in most flavors of SQL, is to use a subquery. For instance, in Oracle this is:</p>
<pre>SELECT count(SELECT DISTINCT foo FROM table) FROM dual</pre>
<p>In SAS, using PROC SQL, you can do that too, but you can also simply do this:</p>
<pre>SELECT count(distinct foo) FROM table</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.philihp.com/blog/2009/counting-distinct-variables-in-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

