2010/8/11 Edson Tirelli <tirelli(a)post.com>:
"Group by" is implicit in rules, just by writing patterns in order. So,
if you write a rule that starts with Customer(), it will automatically do a
"group by" customer:
when
Customer(...)
...
then
Hmm, I think vijrams meant "grouping of the accumulated sums" which will
require the PurchaseSum facts I proposed. Only then it is possible to obtain
all sums-per-day grouped by customer.
I don't see why "customers that purchased more than 100 on a given date"
should fire in Customer order.
Even with my solution some additional quirks will be necessary to get
the data grouped by Customer.
-W