Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Comparing strings whilst ignoring some characters

RE: Comparing strings whilst ignoring some characters

From: Jamadagni, Rajendra <Rajendra.Jamadagni_at_espn.com>
Date: Mon, 17 Mar 2003 05:08:41 -0800
Message-ID: <F001.0056B7D4.20030317050841@fatcity.com>


Mark,

you should look at replace() function ... not translate ...

Raj



Rajendra dot Jamadagni at espn dot com
Any views expressed here are strictly personal. QOTD: Any clod can have facts, having an opinion is an art !!

-----Original Message-----
Sent: Monday, March 17, 2003 12:40 AM
To: Multiple recipients of list ORACLE-L

Hi Everyone,

I have a common problem and whilst I can remember solving it in the past I'm drawing a mental blank this time...

I need to look for duplicates in a varchar2 field in a table. However I should ignore case, whitespace and non-alphanumeric characters. Obviously upper, rtrim and ltrim get me a long way to the solution, but... What is the easiest way to remove inline space, so that "the cat" equals "thecat". I thought I used the translate function, but a quick inspection didn't reveal how.

Thanks in advance,

          Mark.


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jamadagni, Rajendra
  INET: Rajendra.Jamadagni_at_espn.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Received on Mon Mar 17 2003 - 07:08:41 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US