Examples | AddObjectListEntrySP(X) | Teradata Vantage - Example: Creating an Object List - Analytics Database - Teradata Vantage

SQL Operators and User-Defined Functions

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-04-05
dita:mapPath
xub1628111590556.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
drp1544241916620
lifecycle
latest
Product Category
Teradata Vantage™

In this example, you create an object list named 'MyObjects'. 'MyObjects' contains all the tables in the 'Payroll' database, the individual table 'Employee.Withholding', and all the tables in the 'Taxes' database with names that begin with 'Rate'.

CALL TDMaps.CreateObjectListSP('MyObjects', NULL, :ObjectListId);
CALL TDMaps.AddObjectListEntrySP('MyObjects', 'Payroll', NULL,:NumObjectsAdded);
CALL TDMaps.AddObjectListEntrySP('MyObjects', 'Employee’, 'Withholding',:NumObjectsAdded);
CALL TDMaps.AddObjectListEntrySP('MyObjects', 'Taxes', 'Rate%',:NumObjectsAdded);