Consider the following queries
INSERT INTO DummyTable (TextColumn) VALUES ('Text');
INSERT INTO DummyTable (TextColumn) VALUES ('Text ');
SELECT DISTINCT TextColumn FROM DummyTable
Note that the second insert contains a space: “Text”
But DISTINCT ignores space and returns only one line of "Text" - how do you make DISTINCT not to ignore spaces?
source
share