Hi,
I have a package that has a function and it's return type is BOOLEAN. In pl/sql, I'm able to say:
However, I can't seem to get it working in a select statement.
For instance, I've tried to evaluate the function the following ways and they all return an error:
Is it possible to put a custom function call like this inside a SQL statement?
Thanks!
I have a package that has a function and it's return type is BOOLEAN. In pl/sql, I'm able to say:
Code:
IF (pricing.does_qualify(p_profile_id)) THEN
....
END IF;
However, I can't seem to get it working in a select statement.
For instance, I've tried to evaluate the function the following ways and they all return an error:
Code:
Select 1 FROM dual where (pricing.does_qualify(p_profile_id));
Select 1 FROM dual where pricing.does_qualify(p_profile_id) = TRUE;
Select 1 FROM dual where pricing.does_qualify(p_profile_id) = 1;
Is it possible to put a custom function call like this inside a SQL statement?
Thanks!