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 -> nvl /min function question

nvl /min function question

From: Iancrozier <iancrozier_at_aol.com>
Date: 23 Jun 1998 14:22:46 GMT
Message-ID: <1998062314224600.KAA26750@ladder03.news.aol.com>


I have been trying to run a PL/SQL program where I am looking for a minimum value of a column in a table which is greater than a certain other value. In some cases I get a null value, so I would like to use nvl to change the null values to the same constant. So, my question, is it possible to "wrap" the nvl function around the min function. I have tried to use something like select nvl(min(A),99999) into v_A from TABLE where A > B;

but that doesn't work. What should I do instead?

TIA Received on Tue Jun 23 1998 - 09:22:46 CDT

Original text of this message

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