 




<?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 statements question</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/sql-statements-question/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-statements-question/</link>
	<description></description>
	<lastBuildDate>Sun, 19 May 2013 03:14:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: oldcat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-statements-question/#comment-88312</link>
		<dc:creator>oldcat</dc:creator>
		<pubDate>Fri, 18 Feb 2011 08:15:57 +0000</pubDate>
		<guid isPermaLink="false">#comment-88312</guid>
		<description><![CDATA[The SQL statement below should work:

select ac_id, month(ac_date), &lt;a href=&quot;http://www.1keydata.com/sql/sql-sum.html&quot;&gt;sum&lt;/a&gt;(ac_bal)
from ENTRY
&lt;a href=&quot;http://www.1keydata.com/sql/sqlgroupby.html&quot;&gt;group by&lt;/a&gt; ac_id

Note in the above, I used the MONTH() function, which works in MySQL.  Depending on your database, you may need to use a different function to retrieve the month from a date.]]></description>
		<content:encoded><![CDATA[<p>The SQL statement below should work:</p>
<p>select ac_id, month(ac_date), <a href="http://www.1keydata.com/sql/sql-sum.html">sum</a>(ac_bal)<br />
from ENTRY<br />
<a href="http://www.1keydata.com/sql/sqlgroupby.html">group by</a> ac_id</p>
<p>Note in the above, I used the MONTH() function, which works in MySQL.  Depending on your database, you may need to use a different function to retrieve the month from a date.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/9 queries in 0.011 seconds using memcached
Object Caching 268/271 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-19 20:27:30 -->