[rules-users] Disting and group by
Edson Tirelli
tirelli at post.com
Wed Aug 11 16:11:00 EDT 2010
Hi Wolfgang,
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... :)
Edson
2010/8/11 Wolfgang Laun <wolfgang.laun at gmail.com>
> 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
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
--
Edson Tirelli
JBoss Drools Core Development
JBoss by Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100811/89754e6d/attachment.html
More information about the rules-users
mailing list