Use
BINARY
operador
por isso:SELECT DISTINCT(BINARY name) AS Name FROM X;
Você também pode
CAST
ao selecionar:SELECT DISTINCT
(CAST(name AS CHAR CHARACTER SET utf8) COLLATE utf8_bin) AS Name FROM X;
BINARY
operador
por isso:SELECT DISTINCT(BINARY name) AS Name FROM X;
CAST
ao selecionar:SELECT DISTINCT
(CAST(name AS CHAR CHARACTER SET utf8) COLLATE utf8_bin) AS Name FROM X;