how to get unique values in psql code example Example: psql select unique SELECT DISTINCT column1 FROM table_name;