SELECT DISTINCT fieldName FROM tableName;
A consulta a seguir selecionará apenas o campo 'zip' distinto.
SELECT DISTINCT zip FROM student;
SELECT * FROM tableName GROUP BY fieldName;
A consulta a seguir selecionará todos os campos junto com o campo zip distinto.
SELECT * FROM student GROUP BY zip;