CREATE FUNCTION DB2ADMIN.MY_FUNCTION(
INTEGER,
DATE )
RETURNS TABLE (
A DECIMAL(20, 10),
B DECIMAL(20, 10) )
AS TEMPLATE
DETERMINISTIC
NO EXTERNAL ACTION;
SQL0104N An unexpected token "TABLE or ROW" was found following "RETURNS". Expected tokens may include: "Data types supported by CREATE FUNCTION(template)".