I have the problem, that MSSQL Server 2000 should select some distinct values from a table (the specific column is of the nvarchar type). There are the sometimes the same va
Not sure about MS SQL but with MySQL or postgres, use BINARY for this operation. Cast the column to binary like so:
SELECT DISTINCT BINARY(column1) from table1;
Just change column1 and table1 as per your schema.
Full example that works for me in MySQL 5.7, should work for others:
SELECT DISTINCT BINARY(gateway) from transactions;
Cheers!