To be callable from SQL expressions, a user-defined function must: 1. Be a stored function 2. Accept only IN parameters 3. Accept only valid SQL data types, not PL/SQL specific types, as parameters 4. Return data types that are valid SQL data types, not PL/SQL specific types
-
All are true
-
1, 2 and 4 are true
-
1 and 2 alone true
-
2 and 3 alone are ture
A
Correct answer
Explanation
All four statements are correct requirements for functions called from SQL. The function must be stored (not anonymous), accept only IN parameters (OUT/IN OUT not permitted in SQL context), and use only SQL data types for both parameters and return values (PL/SQL types like BOOLEAN or RECORD are not allowed in SQL).