I have a query like this:
SELECT *
FROM employees emp
WHERE emp.loc = 'US'
AND usr.fnctn('emp_sal', :sal1, :sal2);
This query causes an error:
ORA-00920: invalid RELATIONAL OPERATOR
My function just returns the highest and the lowest sal in employees table
fnctnmust return something else and therefore you need some relation to compare the return value with.