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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Sql query

Re: Sql query

From: andrewst <member14183_at_dbforums.com>
Date: Tue, 13 May 2003 11:21:50 +0000
Message-ID: <2872505.1052824910@dbforums.com>

You need to put the scalar subquery inside parentheses:

Update PIPPO set FIELD =
DECODE(FIELD1,'AA', DECODE(
(SELECT COUNT (DISTINCT FIELD1) FROM
TAB
WHERE ANNO = '2003') , '1' ,'100', '90'), '100') WHERE ANNO = '2003'

--
Posted via http://dbforums.com
Received on Tue May 13 2003 - 06:21:50 CDT

Original text of this message

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