I can select all the distinct values in a column in the following ways:
SELECT DISTINCT column_name FROM table_name;
SELECT column_
select count(*) from ( SELECT distinct column1,column2,column3,column4 FROM abcd ) T
This will give count of distinct group of columns.