Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Question
Francesco S. Rinaldi wrote:
> Karsten Farrell <kfarrell_at_belgariad.com> wrote in message news:<MPG.18b6b7b24d1cd9709896a6_at_news.la.sbcglobal.net>...
>
>>thechessPUSSAVIASPAMMERplayer_at_tin.it said... >>
>>>but even if in some similar cases it worked, in this case (and in other), I >>>receive the error message: >>>ORA-01722 Invalid number .... >>> >>> >>>Why is this happening ? >>> >>>Thanks in advance, >>>Francesco >>> >> >>I assume that v_dep1_v is a numeric field? If so, you can't put an alpha >>literal ('NA') in it, and you might need to replace your nvl with >>something like: >> >>decode(cvtest_1_sen.v_dep1_v, null, 'NA', cvtest_1_sen.v_dep1_v)
Have you considered an outer join?
SELECT tableA.dataA, NVL(tableB.dataB, 'N.A.') ....
FROM tableA, tableB ...
WHERE tableA.object_id = 666 AND tableB.object_id(+) = tableA.object_id ... AND tableA.property = 'boh' AND tableB.property(+) = 'pippo' ....
NOTE: the key is every place the outer joined table appears, it must have the outer join operator (+). Otherwise it defaults to (effectively becomes) a normal join.
HTH (PS FIDE.org? is that the Chess Federation? Looks like the website is down. Need help?)
-- Ed Prochak running: http://www.faqs.org/faqs/running-faq/ family: http://web.magicinterface.com/~collins -- "Two roads diverged in a wood and I I took the one less travelled by and that has made all the difference." robert frostReceived on Fri Feb 21 2003 - 11:07:21 CST
![]() |
![]() |