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 -> testing an overloaded function

testing an overloaded function

From: bullseye <bullseye35_at_deletethefunnies@excite.com>
Date: Thu, 06 Dec 2001 20:07:34 GMT
Message-ID: <aeQP7.181288$XA5.28865116@typhoon.nyc.rr.com>


Two functions return the results of a COUNT (*) from a select statement. One function uses a customer id, another uses a customer first name and last name.

If there were more than one customers with the same first_name and last_name, what is the better way to return a NULL?

  exception
when too_many_rows

   then
return null; ?

or use

IF COUNT (*) >1 .....RETURN NULL; (at the appropriate place in the syntax) ?

or, is either one good to use? Received on Thu Dec 06 2001 - 14:07:34 CST

Original text of this message

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