Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Sql query
"Joshua Lool" <josh1977_at_libero.it> schrieb im Newsbeitrag
news:606d36fba9669f6964215b4cd0d62438.84112_at_mygate.mailgate.org...
> Update PIPPO set FIELD =
> DECODE(FIELD1,'AA', DECODE(
> SELECT COUNT (DISTINCT FIELD1) FROM
> TAB
> WHERE ANNO = '2003' , '1' ,'100', '90'), '100')
> WHERE ANNO = '2003'
>
> Where is the error ?
>
> Thanx
Hi Joshua,
the (obvious) error is: using SELECT in the DECODE. It's simply not allowed.
hth,
Guido
Received on Tue May 13 2003 - 05:39:56 CDT
![]() |
![]() |