<div>   Hi Wolfgang,</div><div><br></div><div>   I believe both suggestions (mine and yours) are equivalent, just different ways of writing down the solution for the problem. If you identify any significant difference in the results, please let me know... :)</div>
<div><br></div><div>    Edson</div><br><br><div class="gmail_quote">2010/8/11 Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2010/8/11 Edson Tirelli &lt;<a href="mailto:tirelli@post.com">tirelli@post.com</a>&gt;:<br>
<div class="im">&gt;<br>
&gt;    &quot;Group by&quot; is implicit in rules, just by writing patterns in order. So,<br>
&gt; if you write a rule that starts with Customer(), it will automatically do a<br>
&gt; &quot;group by&quot; customer:<br>
&gt; when<br>
&gt;    Customer(...)<br>
&gt;    ...<br>
&gt; then<br>
<br>
</div>Hmm, I think vijrams meant &quot;grouping of the accumulated sums&quot; which will<br>
require the PurchaseSum facts I proposed. Only then it is possible to obtain<br>
all sums-per-day grouped by customer.<br>
<br>
I don&#39;t see why &quot;customers that purchased more than 100 on a given date&quot;<br>
should fire in Customer order.<br>
<br>
Even with my solution some additional quirks will be necessary to get<br>
the data grouped by Customer.<br>
<font color="#888888"><br>
-W<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>