You can use the Teradata Function Editor to create and maintain the user-defined functions in a Teradata physical model.
To add user-defined Teradata functions
The Teradata Function Editor opens.
Note: Click New on the toolbar to create a new function. Use the Enter filter text text box to filter a very large list of functions to quickly locate the one you want to work with.
Specifies the name of the function.
Specifies the database or user.
Specifies the type of the function. Select from the drop-down list. Valid values are: Model Level or Table Level.
Specifies the function type. Select from the drop-down. Valid values are Scalar or Table.
Specifies if the function is enabled or not.
Lets you select whether Forward Engineering uses the REPLACE command instead of the CREATE command.
Specifies if upon creating a new (table-level only) table, this script will automatically be attached to it.
Generates DDL for this object during Forward Engineering.
Specifies whether you want to generate DDL as pre-script. Valid values are Post Creation and Pre Creation.
Specifies the function type. Select from the drop-down. Valid values are Scalar or Table.
Specifies the specific function type selected in the previous field.
Specifies the data type for the value returned by the function. Distinct and structured UDT's are valid for scalar function only.
Note: This property only displays if the function type is set to scalar.
Specifies the character set type.
Note: This property only displays if the function type is set to scalar.
Specifies casting from data type.
Note: This property only displays if the function type is set to scalar.
Specifies the data-type/domain casting from.
Note: This property only displays if the function type is set to scalar.
Specifies the character set type casting from.
Note: This property displays only if the function type is set to scalar.
Specifies the data-type/domain that will be returned.
Note: This property only displays if the function type is set to scalar.
Defines a reference to a table that will define the table that the function will return.
Note: This property only displays if the function type is set to table.
Defines a reference to a table that will define the varying columns that the function will return.
Note: This property only displays if the function type is set to table.
The Teradata Function Editor closes.
Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |