Message-Id: <10661.120335@fatcity.com> From: Marcos.Vera@msconsultores.com.pe Date: Thu, 26 Oct 2000 14:33:43 -0500 Subject: RE: Why this update is not working , can't I use nvl function in i think it's not necessary nvl ... Diana Duncan on 26/10/2000 03:21:20 PM Please respond to ORACLE-L@fatcity.com To: Multiple recipients of list ORACLE-L cc: (bcc: Marcos Vera/M&S Consultores/51) Subject: RE: Why this update is not working , can't I use nvl function in Why not put the nvl into the select portion instead of around it? Instead of update set max_capacity = nvl( (select max (col1) from where .col1 = where col2 = 33)), 0.0) where .col1 between v_min_unique_num and (v_min_unique_num + v_increment); Do this update set max_capacity = (select nvl(max (col1),0.0) from where .col1 = where col2 = 33)) where .col1 between v_min_unique_num and (v_min_unique_num + v_increment); -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Diana Duncan INET: Diana@fileFRENZY.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).