16.20 - Example: Select a List of Tables and Join Indexes with Single-level Partitioning from IndexConstraints - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ Data Dictionary

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-03
dita:mapPath
zzu1512081120577.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval

The following query retrieves a list of tables and join indexes that have single-level partitioning:

SELECT DatabaseName, TableName (TITLE 'Table/Join Index Name')
   FROM DBC.IndexConstraints
   WHERE ConstraintType = 'Q'
   AND (  SUBSTRING(ConstraintText FROM 1 FOR 13) < 'CHECK (/*02*/'
     OR SUBSTRING(ConstraintText FROM 1 FOR 13) > 'CHECK (/*15*/')
   ORDER BY DatabaseName, TableName;