From: Ian B. <ia...@co...> - 2004-04-04 21:17:34
|
On Apr 4, 2004, at 8:33 AM, Philippe Normand wrote: > How can I use func.SUM() since it can't reside in where condition ? > For COUNT(), there's a way with Table.select().count(). What's the > trick for SUM() ? > I didn't found any Table.select().sum('attribute') You can't really use SUM -- it's also left in sqlbuilder from sqlbuilder's past life as a general query builder. It would be interesting to add that as a method to SelectResults, like count. -- Ian Bicking | ia...@co... | http://blog.ianbicking.org |