16.20 - Example: Creating Object List ‘ObjNotInMap2’ - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Operators and User-Defined Functions

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Administration
Programming Reference
Publication ID
B035-1210-162K
Language
English (United States)

In this example, create an object list named ‘ObjNotInMap2’ consisting of all objects not in TD_Map2.

CALL TDMaps.CreateObjectListSP('ObjNotInMap2',NULL,:ObjectListId);

INSERT TDMaps.ObjectListEntry 
SELECT ZoneName, ListId, DatabaseName, TableName 
FROM TDMaps.ObjectListTbl,  dbc.tablesv t
WHERE ListName = 'ObjNotInMap2'
and TableKind IN ('T','I','J','N','O') 
and t.mapname not in ('td_datadictionarymap', 'td_globalmap','td_map2');