Hi all,

I am trying to use aggregators for non-numeric types, say I have a
table that looks like

FirstName, LastName
John          Doe
John          Smith

I want to do something like:

select FirstName, max(LastName) from T group by FirstName

When I use aggregators, I do something like

T.aggregate(Max('LastName'))

but the problem is that for aggregators, it expects a float, not a
string. Is it possible to use strings as maximum/minimum values?

Thanks

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

Reply via email to