Changes between Version 3 and Version 4 of Ticket #35437, comment 2
- Timestamp:
- May 6, 2024, 6:54:44 PM (6 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35437, comment 2
v3 v4 49 49 ) 50 50 }}} 51 52 Or a window function 53 54 {{{#!python 55 Employee.objects.annotate( 56 highest_paid_id=Window( 57 FirstValue("id"), 58 partition_by="manager", 59 order_by="-salary", 60 ) 61 ).filter(id=F("highest_paid_id")) 62 }}}