PostgreSQL HAVING statement.