I'm working with a custom Query, I need use SUM and COUNT together, when I 
use:

select(db.field.count(), db.field.sum()) works OK

But when I use:

select('COUNT(*)', 'SUM(DATEDIFF(table.field,NOW()))') raise an error

I see that I can't combine more that 1 custom expressions.

Any idea?

-- 



Reply via email to