You don't, it doesn't work that way.

You can map the aggregate as a (SA) property of another class, or make
it a (Python) property/function of the Expense class.  Either way
you'll have to create a select object, either for the mapping or a
manual query.

On 2/27/07, Pradeep <[EMAIL PROTECTED]> wrote:
>
> I have a expenses table with a amount field. I have mapped that table
> to a Expense entity object.
> How do I sum up all the amounts using my entity object.?
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to