CREATE TABLE TEST ( customername varchar(50) ); INSERT INTO TEST VALUES(\'CUSTOMER 1\'); INSERT INTO TEST VALUES(\'CUSTOMER 1\'); INSERT INTO TEST VALUES(\'CUSTOM
SELECT customername FROM TEST ORDER BY ROW_NUMBER() OVER ( PARTITION BY customername ORDER BY customername )