Postgres contam distintos
SELECT
COUNT(DISTINCT column)
FROM
table_name
WHERE
condition;
Graceful Goose
SELECT
COUNT(DISTINCT column)
FROM
table_name
WHERE
condition;