Oracle Performance Tuning, 2nd Edition by Mark Gurry and Peter Corrigan Here are the changes from the 12/98 reprint: {211} 2nd code block, after 4th line, add: sal_val >= 8001 Then And change the preceding "THEN" to "OR" so the code reads: If sal_val <= 2000 OR sal_val >= 8001 THEN RETURN (0); END IF;