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 gB65HNG06009
 for <oracle-l@orafaq.net>; Thu, 5 Dec 2002 23:17:23 -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 gB65HM306004
 for <oracle-l@orafaq.net>; Thu, 5 Dec 2002 23:17:22 -0600
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id RAA15966;
 Thu, 5 Dec 2002 17:56:28 -0800 (PST)
Received: by fatcity.com (26-Feb-2001/v1.0g-b72/bab) via UUCP id 0051401F; Thu, 05 Dec 2002 17:28:45 -0800
Message-ID: <F001.0051401F.20021205172845@fatcity.com>
Date: Thu, 05 Dec 2002 17:28:45 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Burton, Laura L." <BurtonL@prismplus.com>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Burton, Laura L." <BurtonL@prismplus.com>
Subject: RE: To_Number
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-eb8e518a-c2f5-45a7-b16c-389e2c116767"
------=_NextPartTM-000-eb8e518a-c2f5-45a7-b16c-389e2c116767
Content-Type: multipart/alternative;
 boundary="----_=_NextPart_001_01C29CC6.B3DF9FF0"
------_=_NextPart_001_01C29CC6.B3DF9FF0
Content-Type: text/plain

Since we don't have that many 3rd party software packages I did make the
mistake of asking 'Why??' and received 'Because!' so I too am trying to jump
in and 'fix it'.  As I responded to another email earlier, the RTrim worked
because there were spaces after the amount which was causing the problem.
The only problem now is I have one record (so far) that has a unit cost that
looks like any other unit cost, yet I receive 'invalid number' for it.  The
only thing I can figure is that there must be an unprintable character in
the field that I cannot see and rtrim is not deleting since it isn't a
space.

Laura


-----Original Message-----
[mailto:JApplewhite@austin.isd.tenet.edu] 
Sent: Thursday, December 05, 2002 5:34 PM
To: Multiple recipients of list ORACLE-L


Rachel,

We have two Third Party apps here for Finance and Student Information that
do ridiculous stuff like this so often, I just immediately jumped into "fix
it" mode without even questioning.  "Don't even ask why" is our motto.    ;
-)

Jack C. Applewhite
Database Administrator
Austin Independent School District
Austin, Texas
512.414.9715 (wk)
512.935.5929 (pager)
JApplewhite@austin.isd.tenet.edu



 

                    Rachel

                    Carmichael           To:     Multiple recipients of list
ORACLE-L       
                    <wisernet100@Y        <ORACLE-L@fatcity.com>

                    AHOO.COM>            cc:

                    Sent by:             Subject:     Re: To_Number

                    root@fatcity.c

                    om

 

 

                    12/05/2002

                    03:49 PM

                    Please respond

                    to ORACLE-L

 

 



Am I the only one wondering why an obviously numeric field
(unit_cost???) is being stored as varchar?

--- JApplewhite@austin.isd.tenet.edu wrote:
>
> Laura,
>
> Are those really zeros in $34,000.05 or are they letter Os?  If so
> use
> Replace.  (Beware of letter l being used instead of numeral 1 as
> well.)
>
> Any leading or trailing spaces?  If so use Trim(unit_cost).
>
> Just a couple of quick suggestions.
>
> Jack C. Applewhite
>
>
>Burton, Laura
>
> I have a table which contains a Unit_Cost varchar2(16) which contains
> $34,000.05.  I can enter select
> to_number('$34,990.08','$999,999,999.99')
> from dual; and the results is 34990.08.  However when I enter select
> to_number(unit_cost,'$999,999,999.99') from elas.qdr I get ora-01722:
> invalid number.
>
> Is there any other way to do this?  I am trying to add a varchar2
> field
> that contains $ and commas.  I thought the to_number function would
> convert
> the data to a number field.
>
> Thanks,
>
> Laura



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: JApplewhite@austin.isd.tenet.edu

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).

------_=_NextPart_001_01C29CC6.B3DF9FF0
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2654.45">
<TITLE>RE: To_Number</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Since we don't have that many 3rd party software =
packages I did make the mistake of asking 'Why??' and received =
'Because!' so I too am trying to jump in and 'fix it'.&nbsp; As I =
responded to another email earlier, the RTrim worked because there were =
spaces after the amount which was causing the problem.&nbsp; The only =
problem now is I have one record (so far) that has a unit cost that =
looks like any other unit cost, yet I receive 'invalid number' for =
it.&nbsp; The only thing I can figure is that there must be an =
unprintable character in the field that I cannot see and rtrim is not =
deleting since it isn't a space.</FONT></P>

<P><FONT SIZE=3D2>Laura</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: JApplewhite@austin.isd.tenet.edu [<A =
HREF=3D"mailto:JApplewhite@austin.isd.tenet.edu">mailto:JApplewhite@aust=
in.isd.tenet.edu</A>] </FONT>
<BR><FONT SIZE=3D2>Sent: Thursday, December 05, 2002 5:34 PM</FONT>
<BR><FONT SIZE=3D2>To: Multiple recipients of list ORACLE-L</FONT>
<BR><FONT SIZE=3D2>Subject: Re: To_Number</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Rachel,</FONT>
</P>

<P><FONT SIZE=3D2>We have two Third Party apps here for Finance and =
Student Information that</FONT>
<BR><FONT SIZE=3D2>do ridiculous stuff like this so often, I just =
immediately jumped into &quot;fix</FONT>
<BR><FONT SIZE=3D2>it&quot; mode without even questioning.&nbsp; =
&quot;Don't even ask why&quot; is our motto.&nbsp;&nbsp;&nbsp; ;</FONT>
<BR><FONT SIZE=3D2>-)</FONT>
</P>

<P><FONT SIZE=3D2>Jack C. Applewhite</FONT>
<BR><FONT SIZE=3D2>Database Administrator</FONT>
<BR><FONT SIZE=3D2>Austin Independent School District</FONT>
<BR><FONT SIZE=3D2>Austin, Texas</FONT>
<BR><FONT SIZE=3D2>512.414.9715 (wk)</FONT>
<BR><FONT SIZE=3D2>512.935.5929 (pager)</FONT>
<BR><FONT SIZE=3D2>JApplewhite@austin.isd.tenet.edu</FONT>
</P>
<BR>
<BR>

<P><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Am I the only one wondering why an obviously numeric =
field</FONT>
<BR><FONT SIZE=3D2>(unit_cost???) is being stored as varchar?</FONT>
</P>

<P><FONT SIZE=3D2>--- JApplewhite@austin.isd.tenet.edu wrote:</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Laura,</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Are those really zeros in $34,000.05 or are =
they letter Os?&nbsp; If so</FONT>
<BR><FONT SIZE=3D2>&gt; use</FONT>
<BR><FONT SIZE=3D2>&gt; Replace.&nbsp; (Beware of letter l being used =
instead of numeral 1 as</FONT>
<BR><FONT SIZE=3D2>&gt; well.)</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Any leading or trailing spaces?&nbsp; If so use =
Trim(unit_cost).</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Just a couple of quick suggestions.</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Jack C. Applewhite</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;Burton, Laura</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; I have a table which contains a Unit_Cost =
varchar2(16) which contains</FONT>
<BR><FONT SIZE=3D2>&gt; $34,000.05.&nbsp; I can enter select</FONT>
<BR><FONT SIZE=3D2>&gt; =
to_number('$34,990.08','$999,999,999.99')</FONT>
<BR><FONT SIZE=3D2>&gt; from dual; and the results is 34990.08.&nbsp; =
However when I enter select</FONT>
<BR><FONT SIZE=3D2>&gt; to_number(unit_cost,'$999,999,999.99') from =
elas.qdr I get ora-01722:</FONT>
<BR><FONT SIZE=3D2>&gt; invalid number.</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Is there any other way to do this?&nbsp; I am =
trying to add a varchar2</FONT>
<BR><FONT SIZE=3D2>&gt; field</FONT>
<BR><FONT SIZE=3D2>&gt; that contains $ and commas.&nbsp; I thought the =
to_number function would</FONT>
<BR><FONT SIZE=3D2>&gt; convert</FONT>
<BR><FONT SIZE=3D2>&gt; the data to a number field.</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Thanks,</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Laura</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>Please see the official ORACLE-L FAQ: <A =
HREF=3D"http://www.orafaq.com" =
TARGET=3D"_blank">http://www.orafaq.com</A></FONT>
<BR><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>Author: </FONT>
<BR><FONT SIZE=3D2>&nbsp; INET: JApplewhite@austin.isd.tenet.edu</FONT>
</P>

<P><FONT SIZE=3D2>Fat City Network Services&nbsp;&nbsp;&nbsp; -- =
858-538-5051 <A HREF=3D"http://www.fatcity.com" =
TARGET=3D"_blank">http://www.fatcity.com</A></FONT>
<BR><FONT SIZE=3D2>San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Mailing list =
and web hosting services</FONT>
<BR><FONT =
SIZE=3D2>---------------------------------------------------------------=
------</FONT>
<BR><FONT SIZE=3D2>To REMOVE yourself from this mailing list, send an =
E-Mail message</FONT>
<BR><FONT SIZE=3D2>to: ListGuru@fatcity.com (note EXACT spelling of =
'ListGuru') and in</FONT>
<BR><FONT SIZE=3D2>the message BODY, include a line containing: UNSUB =
ORACLE-L</FONT>
<BR><FONT SIZE=3D2>(or the name of mailing list you want to be removed =
from).&nbsp; You may</FONT>
<BR><FONT SIZE=3D2>also send the HELP command for other information =
(like subscribing).</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C29CC6.B3DF9FF0--

------=_NextPartTM-000-eb8e518a-c2f5-45a7-b16c-389e2c116767--

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Burton, Laura L.
  INET: BurtonL@prismplus.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).

