djangosnippets.org: Latest snippets tagged with 'aggregate'https://djangosnippets.org/tags/aggregate/2017-01-25T05:46:42.720745-06:00aggregate filter
2017-01-25T05:46:42.720745-06:00atombrellahttps://djangosnippets.org/snippets/10603/<p>Makes it possible to add a filtering condition directly after the aggregate function (or possible, <code>aggregate(expression) WITHIN GROUP (ordering clause)</code>. This is mostly useful if the annotation has two or more expressions, so it's possible to compare the result with and without the applied filter; it's more compact than …</p>
Freely redistributable