records=db(db.mytable.id>0).select(db.mytable.field1,
db.mytable.field2.sum(), groupby=db.mytable.field1)

The code work for sqldb, but do not work for gqldb, I get  error
message " 'SQLField' object has no attribute 'sum' " on GAE.

How do I sum a field on GAE?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to