I did some experiments with some more queries, and indeed, it looks like if you take the sum() of an empty set of objects you get null, not zero. I just checked it and I get the same behavior in SQL itself.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029502#4029502 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029502 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user