A function registered in the DB2 catalog that extends SQL with custom logic. Can be used in SQL expressions (SELECT, WHERE, HAVING, etc.).