Return-Path: <root@fatcity.cts.com>
Received: from ensim.rackshack.net (root@localhost)
 by orafaq.net (8.11.6/8.11.6) with ESMTP id h2HHAm506281
 for <oracle-l@orafaq.net>; Mon, 17 Mar 2003 11:10:48 -0600
X-ClientAddr: 209.68.248.164
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by ensim.rackshack.net (8.11.6/8.11.6) with ESMTP id h2HHAl606274
 for <oracle-l@orafaq.net>; Mon, 17 Mar 2003 11:10:47 -0600
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id FAA83935;
 Mon, 17 Mar 2003 05:51:58 -0800 (PST)
Received: by fatcity.com (26-Feb-2001/v1.0g-b72/bab) via UUCP id 0056B7D4; Mon, 17 Mar 2003 05:08:41 -0800
Message-ID: <F001.0056B7D4.20030317050841@fatcity.com>
Date: Mon, 17 Mar 2003 05:08:41 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Jamadagni, Rajendra" <Rajendra.Jamadagni@espn.com>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Jamadagni, Rajendra" <Rajendra.Jamadagni@espn.com>
Subject: RE: Comparing strings whilst ignoring some characters
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 72; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: multipart/mixed;	boundary="----=_NextPartTM-000-c47c8ed0-39ee-484b-a7d5-f4d21205378f"
------=_NextPartTM-000-c47c8ed0-39ee-484b-a7d5-f4d21205378f
Content-Type: multipart/alternative;
 boundary="----_=_NextPart_001_01C2EC86.7711E730"
------_=_NextPart_001_01C2EC86.7711E730
Content-Type: text/plain;
 charset="iso-8859-1"

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.

------_=_NextPart_001_01C2EC86.7711E730
Content-Type: text/html;
 charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.19">
<TITLE>RE: Comparing strings whilst ignoring some characters</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Mark,</FONT>
</P>

<P><FONT SIZE=2>you should look at replace() function ... not translate ...</FONT>
</P>

<P><FONT SIZE=2>Raj</FONT>
<BR><FONT SIZE=2>-------------------------------------------------------------</FONT>
<BR><FONT SIZE=2>Rajendra dot Jamadagni at espn dot com</FONT>
<BR><FONT SIZE=2>Any views expressed here are strictly personal.</FONT>
<BR><FONT SIZE=2>QOTD: Any clod can have facts, having an opinion is an art !!</FONT>
</P>
<BR>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Mark Richard [<A HREF="mailto:mrichard@transurban.com.au">mailto:mrichard@transurban.com.au</A>]</FONT>
<BR><FONT SIZE=2>Sent: Monday, March 17, 2003 12:40 AM</FONT>
<BR><FONT SIZE=2>To: Multiple recipients of list ORACLE-L</FONT>
<BR><FONT SIZE=2>Subject: Comparing strings whilst ignoring some characters</FONT>
</P>
<BR>

<P><FONT SIZE=2>Hi Everyone,</FONT>
</P>

<P><FONT SIZE=2>I have a common problem and whilst I can remember solving it in the past</FONT>
<BR><FONT SIZE=2>I'm drawing a mental blank this time...</FONT>
</P>

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

<P><FONT SIZE=2>Thanks in advance,</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Mark.</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C2EC86.7711E730--


------=_NextPartTM-000-c47c8ed0-39ee-484b-a7d5-f4d21205378f
Content-Type: text/plain;
 name="ESPN_Disclaimer.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="ESPN_Disclaimer.txt"

*********************************************************************This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you.*********************************************************************1

------=_NextPartTM-000-c47c8ed0-39ee-484b-a7d5-f4d21205378f--

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jamadagni, Rajendra
  INET: Rajendra.Jamadagni@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@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).

