<?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: Using AggregateResult in Salesforce.com SOQL</title>
	<atom:link href="http://blog.jeffdouglas.com/2010/04/12/using-aggregateresult-in-salesforce-com-soql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jeffdouglas.com/2010/04/12/using-aggregateresult-in-salesforce-com-soql/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=using-aggregateresult-in-salesforce-com-soql</link>
	<description>Get your head out of your #@! and into the clouds!</description>
	<lastBuildDate>Wed, 08 Feb 2012 07:57:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: osama</title>
		<link>http://blog.jeffdouglas.com/2010/04/12/using-aggregateresult-in-salesforce-com-soql/comment-page-1/#comment-1572</link>
		<dc:creator>osama</dc:creator>
		<pubDate>Sun, 15 Aug 2010 23:30:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=2433#comment-1572</guid>
		<description>it worked...Integer.ValueOf(String.ValueOf(inte.get(‘expr0′)))

strange</description>
		<content:encoded><![CDATA[<p>it worked&#8230;Integer.ValueOf(String.ValueOf(inte.get(‘expr0′)))</p>
<p>strange</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osama</title>
		<link>http://blog.jeffdouglas.com/2010/04/12/using-aggregateresult-in-salesforce-com-soql/comment-page-1/#comment-1549</link>
		<dc:creator>osama</dc:creator>
		<pubDate>Fri, 13 Aug 2010 00:42:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=2433#comment-1549</guid>
		<description>I tried with max() function and I cant save the resultant value in an Integer variable.

AggregateResult  result = [select max(autonumber__c) from Account where Country = &#039;ABCD&#039; ];

Integer res = Integer.ValueOf(inte.get(&#039;expr0&#039;);

Its giving me the exception of Invalid Integer. The result is an object. Can you tell me where am I going wrong? I am sure it&#039;d be a small thing.

Thanks</description>
		<content:encoded><![CDATA[<p>I tried with max() function and I cant save the resultant value in an Integer variable.</p>
<p>AggregateResult  result = [select max(autonumber__c) from Account where Country = 'ABCD' ];</p>
<p>Integer res = Integer.ValueOf(inte.get(&#8216;expr0&#8242;);</p>
<p>Its giving me the exception of Invalid Integer. The result is an object. Can you tell me where am I going wrong? I am sure it&#8217;d be a small thing.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://blog.jeffdouglas.com/2010/04/12/using-aggregateresult-in-salesforce-com-soql/comment-page-1/#comment-547</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Mon, 12 Apr 2010 16:34:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=2433#comment-547</guid>
		<description>@Scott

Ya, this feature is cool but it is still pretty limited with the 10000 row limit. One thing I have seen is that adding the limit 10000 doesn&#039;t always save you. For example:

List results = [select leadsource, count(name) total,
  count(state) from lead group by leadsource limit 1];

Can still fail and throw and uncatchable exception if you have one leadsource with more than 10000 rows.</description>
		<content:encoded><![CDATA[<p>@Scott</p>
<p>Ya, this feature is cool but it is still pretty limited with the 10000 row limit. One thing I have seen is that adding the limit 10000 doesn&#8217;t always save you. For example:</p>
<p>List results = [select leadsource, count(name) total,<br />
  count(state) from lead group by leadsource limit 1];</p>
<p>Can still fail and throw and uncatchable exception if you have one leadsource with more than 10000 rows.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Hemmeter</title>
		<link>http://blog.jeffdouglas.com/2010/04/12/using-aggregateresult-in-salesforce-com-soql/comment-page-1/#comment-546</link>
		<dc:creator>Scott Hemmeter</dc:creator>
		<pubDate>Mon, 12 Apr 2010 15:02:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=2433#comment-546</guid>
		<description>I originally thought this was fixed, but it&#039;s not... Add a limit 10000 to your aggregate function queries because there is a hard limit if your query is examining &gt; 10000 records.</description>
		<content:encoded><![CDATA[<p>I originally thought this was fixed, but it&#8217;s not&#8230; Add a limit 10000 to your aggregate function queries because there is a hard limit if your query is examining &gt; 10000 records.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wes</title>
		<link>http://blog.jeffdouglas.com/2010/04/12/using-aggregateresult-in-salesforce-com-soql/comment-page-1/#comment-545</link>
		<dc:creator>Wes</dc:creator>
		<pubDate>Mon, 12 Apr 2010 12:36:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=2433#comment-545</guid>
		<description>Yeah it&#039;s a bit of an advanced syntax for people just picking up apex, excellent post.</description>
		<content:encoded><![CDATA[<p>Yeah it&#8217;s a bit of an advanced syntax for people just picking up apex, excellent post.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

