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

Home -> Community -> Usenet -> c.d.o.server -> Re: Getting the max of a char field

Re: Getting the max of a char field

From: Artem V. Kabannik <tema_at_jocker.ggd.nsu.ru>
Date: 26 Nov 1999 09:29:22 GMT
Message-ID: <81ljti$t1m$2@news.nsu.ru>


Franz Mueller <nospam#####franz.mueller_at_orbis.de> wrote:

: "select max(to_num(c1)) from T1" or even "select max(NUM) from (select
: to_num(c1) NUM from T1)" gives me an error:
: "ORA-01722: invalid number"

Hi

It seems that you are trying to convert char to number with wrong format. For instance, the following statment will give you the same error:

SELECT to_number('1.1', '9,9') FROM dual;
                        ^^^^^^ 
                      this is bad format string

regards,
tema Received on Fri Nov 26 1999 - 03:29:22 CST

Original text of this message

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