The Python Oracle

How to query as GROUP BY in django?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzling Curiosities

--

Chapters
00:00 Question
00:48 Accepted answer (Score 714)
01:59 Answer 2 (Score 76)
02:45 Answer 3 (Score 57)
03:57 Answer 4 (Score 9)
04:23 Thank you

--

Full question
https://stackoverflow.com/questions/6295...

Accepted answer links:
[aggregation features of the ORM]: http://docs.djangoproject.com/en/stable/...
[values()]: https://docs.djangoproject.com/en/stable...
[annotate()]: https://docs.djangoproject.com/en/stable...
[Count]: https://docs.djangoproject.com/en/stable...
[Aggregation]: https://docs.djangoproject.com/en/stable...
[Interaction with default ordering or ]: https://docs.djangoproject.com/en/stable...

Answer 2 links:
[raw SQL]: http://docs.djangoproject.com/en/dev/top...

Answer 3 links:
https://docs.djangoproject.com/en/2.1/re...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #django #djangomodels

#avk47