Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: to_number question
And observe some more ....
select distinct nbr_cc_fop_name, (X - Y) xxx, (X+Y) yyy
from (
select nbr_cc_fop_name, to_number(trim(nbr_cc_no_high)) X ,
to_number(trim(nbr_cc_no_low)) Y
from nbr_cc
where nbr_cc_fop_name in ('AX','MC','VI','DS')
)
NBR_CC XXX YYYPlease see the official ORACLE-L FAQ: http://www.orafaq.com
------ ----------------- ------------------
AX 9999999999999 689999999999999 AX 9999999999999 749999999999999 DS 999999999999 12022999999999999 MC 407999999999999 11591999999999999 MC 590999999999999 10590999999999999 VI 999999999999 8999999999999 VI 999999999999999 8999999999999999
----------------------------------------------------------------
![]() |
![]() |