Use max(coalesce(logincount, 0)) to avoid NULLs. According to Postgres docs (9.6): The COALESCE function returns the first of its arguments that is not null ...
確定! 回上一頁