Hello, I have been trying all sorts of things with aggregate and annotate and can't seem to get the right combination. Is there a way to get the sum of one or multiple columns for each day? Similar to:
SELECT view_date, SUM(my_column) FROM my_table GROUP BY DAY (view_date); This works in raw sql, I just can't figure out the right way in Django. Any help would be greatly appreciated. Thanks, T --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---