wilhelm.pakulla@gmx.de writes:
> So, if I use the max() aggregate, I receive one row with the value NULL. Is
> that correct?
Yup, that's what the SQL spec says to do, and it seems reasonable to me.
IIRC, the spec also says that SUM() over no rows returns NULL, which is
less reasonable --- I'd have defined it as returning zero, myself.
But when in doubt we follow the spec.
regards, tom lane