On Sat, Aug 24, 2024 at 5:54 AM Plettenbacher, Tobias (LWF) <
Tobias(dot)Plettenbacher(at)lwf(dot)bayern(dot)de> wrote:
> I often use Max(ARRAY[]) to get the ID of the maximum value.
>
You should probably start writing lateral queries with limits instead of
hacking aggregation to determine rank.
David J.