Postgres Create If Then In Excel