Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Search a string for accented characters

Finbar FitzgeraldSep 10 2009 — edited Sep 10 2009
Hi all,

I have an Oracle db 9.2. There is a table CUSTOMER with a column called SURNAME. The database character set is WE8ISO8859P1. There are 35 million records in the CUSTOMER table a small minority of which have been entered including accented characters in the SURNAME field like ò for example.

I need to determine exactly how many rows contain accented characters and report on them. The majority of rows don't have accented characters. I need a query that will SELECT only those rows in which the SURNAME field contains some accented characters. In English the query to report these rows would be something like:

SELECT SURNAME FROM CUSTOMER WHERE SURNAME CONTAINS AT LEAST ONE ACCENTED CHARACTER;

or expressed differently as


SELECT SURNAME FROM CUSTOMER WHERE SURNAME CONTAINS AT LEAST ONE CHARACTER <a or > z and <A or > Z;

My string manipulation skills are not very strong and I would appreciate if anyone could help
This post has been answered by MichaelS on Sep 10 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 8 2009
Added on Sep 10 2009
5 comments
2,677 views