For any form of a query, the privileges held by the authorization ID of the statement must include at least one of the following:
If an expression includes a function, the authorization ID of the statement must include at least one of the following for each user-defined function:
For information on the system authorities corresponding to SQL privileges, see Corresponding System Authorities When Checking Privileges to a Table or View or Corresponding System Authorities When Checking Privileges to a Function or Procedure.