Postgres Max Function In Excel