COUNT of DISTINCT items in a column

Here's the SQL that works (strangely) but still just returns the COUNT of all items, not the COUNT of DISTINCT items in the column.

SELECT DISTINCT(COUNT(columnName)) FROM tableName;
5
задан blunders 14 April 2011 в 18:08
поделиться