Examples: UDF code

These examples show how to implement user-defined function (UDF) code by using SQL functions and external functions.