Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eliminating Duplicate rows in Postgres

Tags:

postgresql

I want to remove duplicate rows return from a SELECT Query in Postgres

I have the following query

SELECT DISTINCT name FROM names ORDER BY name

But this somehow does not eliminate duplicate rows?

like image 708
Elitmiar Avatar asked Dec 18 '22 07:12

Elitmiar


1 Answers

Maybe something with same-looking-but-different characters (like LATIN 'a'/CYRILLIC 'а')

like image 54
ymv Avatar answered Dec 27 '22 20:12

ymv