I have a table in MySQL, like:
id dirId filename
1 1 jone
2 1 jack
3 2 jack
4 3 ella
I want to get the biggest dir_id(and filename) with the same filename.
We can use group by in MySQL, what to use in django?