CREATE TABLE test1 (c1 VARCHAR(100));
INSERT INTO test1 VALUES('White and Nerdy');
INSERT INTO test1 VALUES('WHITE AND NERDY');
INSERT INTO test1 VALUES('White an Nerdy');
SELECT * FROM test1
WHERE Soundex(c1) = Soundex('WHITE AND NERDY');
but don't expect too much from it. It won't find 'White an Nerdy', but would find something like
'White and Nerdee'
Main Topics
Browse All Topics





by: OMC2000Posted on 2006-12-08 at 07:44:35ID: 18102093
I see two options:
use soundex function or use regular expressions. Notice, that acceptable implementation of regular expressions appeared for Oracle 10g only.