[rules-users] Disting and group by
Wolfgang Laun
wolfgang.laun at gmail.com
Wed Aug 11 10:25:28 EDT 2010
2010/8/11 Edson Tirelli <tirelli at 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
More information about the rules-users
mailing list