Answers for "group by month and year"

0

group by month and year

Request.objects.extra({ "month": ExtractMonth('date_creation'),
                        "year": ExtractYear('date_creation') })
               .values('month', 'year')
               .annotate(total=Count('month'))
               .values('month', 'year', 'total')
Posted by: Guest on March-26-2022

Code answers related to "group by month and year"

Python Answers by Framework

Browse Popular Code Answers by Language