17.10 - 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
17.10
Release Date
July 2021
Content Type
Administration
Programming Reference
Publication ID
B035-1210-171K
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');