I am trying to find a way to list only the names that have an accent.
I am using the following example taken from this question https://dba.stackexchange.com/questions/94887/what-is-the-impact-of-lc-ctype-on-a-postgresql-database
select firstname from (values ('bernard'), ('bérénice'), ('béatrice'), ('boris'))
AS l(firstname)
order by firstname collate "C";
Current output is
firstname
-------
bernard
boris
béatrice
bérénice
Expected output is
firstname
-------
béatrice
bérénice
Any ida what I should put in the where statement?