<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: SQL chart query</title>
	<atom:link href="http://techblog.floorplanner.com/2007/09/07/sql-chart-query/feed/" rel="self" type="application/rss+xml" />
	<link>http://techblog.floorplanner.com/2007/09/07/sql-chart-query/</link>
	<description>Our latest geek adventures!</description>
	<lastBuildDate>Tue, 16 Mar 2010 19:42:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Willem</title>
		<link>http://techblog.floorplanner.com/2007/09/07/sql-chart-query/comment-page-1/#comment-60</link>
		<dc:creator>Willem</dc:creator>
		<pubDate>Tue, 18 Dec 2007 12:41:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.suite75.net/blog/dev/sql-chart-query.html#comment-60</guid>
		<description>This is probably the best way to get the result you want. Note that this will only work for one year, otherwise you&#039;ll be better off adding a YEAR(created_on) to your GROUP BY clause.

I would however change the order of the GROUP BY clause en explicitly add an ORDER BY clause. This will force the result to have increasing month numbers for every account type. This makes it easier to check if all months are accounted for (months without a registration will be omitted from the result). Moreover, most charting libraries I have used seem to expect the input in this order if you want to project the month number on the x-axis.</description>
		<content:encoded><![CDATA[<p>This is probably the best way to get the result you want. Note that this will only work for one year, otherwise you&#8217;ll be better off adding a YEAR(created_on) to your GROUP BY clause.</p>
<p>I would however change the order of the GROUP BY clause en explicitly add an ORDER BY clause. This will force the result to have increasing month numbers for every account type. This makes it easier to check if all months are accounted for (months without a registration will be omitted from the result). Moreover, most charting libraries I have used seem to expect the input in this order if you want to project the month number on the x-axis.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
