17.00 - Example: Select a List of Tables and Join Indexes with Partitioning from IndexConstraints - Teradata Database

Teradata Vantage™ - Data Dictionary

prodname
Advanced SQL Engine
Teradata Database
vrm_release
17.00
created_date
June 2020
category
Administration
Programming Reference
featnum
B035-1092-170K

The following query retrieves a list of tables and join indexes that have partitioning, including their index constraint text:

SELECT DatabaseName, TableName (TITLE 'Table/Join Index Name'),
      ConstraintText
  FROM DBC.IndexConstraints
  WHERE ConstraintType = 'Q'
  ORDER BY DatabaseName, TableName;