lundi 14 septembre 2015

Django query model - GROUP BY, MIN, MAX

I'm having trouble transferring my query to django. In sqlite3 it looked like this:

SELECT A, MIN(B), MAX(B) from table GROUP BY A

This would output unique values from A with a range of values from B Any hints on how to approach this? Is it even possible in django?

Aucun commentaire:

Enregistrer un commentaire