macaron icon indicating copy to clipboard operation
macaron copied to clipboard

GROUP BY clause support

Open nobrin opened this issue 12 years ago • 2 comments

For aggrigation, QuerySet.group_by() will be implemented.

nobrin avatar Mar 08 '12 00:03 nobrin

It's a great idea. I also need it. :+1:

dz1984 avatar Jul 04 '14 03:07 dz1984

Simple GROUP BY clause is considerable. The simple Team.group_by("firstname", "familyname") will be equivalent to SELECT firstname, familyname FROM team GROUP BY firstname, familyname. It returns iterator or list of tuples.

nobrin avatar Dec 04 '14 03:12 nobrin