postgres count distinct
snippet in sql

postgres count distinct

user6978

SELECT 
   COUNT(DISTINCT column) 
FROM 
   table_name
WHERE
   condition;