Выберите подсчет различных значений SQL
SELECT COUNT (DISTINCT column-name) FROM table-name
Relieved Rook
SELECT COUNT (DISTINCT column-name) FROM table-name