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: How would you test this function

Re: How would you test this function

From: MarkyG <markg_at_mymail.tm>
Date: 17 Dec 2001 02:44:06 -0800
Message-ID: <ab87195e.0112170244.72b552d9@posting.google.com>


Dunno if you want to know how to test from a 'technical' point of view. If so

SET SERVEROUT ON
DECLARE
  v_retval NUMBER;
begin
  v_retval = Median_Grade(1, 2, 3);
  dbms_output.put_line(v_retval);
END; Or from SQL*Plus

SQL> SELECT Median_Grade(1, 2, 3) FROM DUAL;

If its testing the logic, see Jims Post ;-)

M

"Jim Kennedy" <kennedy-family_at_attbi.com> wrote in message news:<pDAS7.642$MM5.323802_at_rwcrnsc53>...
> Create the necessary table , add data , calculate the median by hand, run
> the function. Use both an odd and an even number of grades. Also do it
> with no grades.
> Jim
Received on Mon Dec 17 2001 - 04:44:06 CST

Original text of this message

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