There's more...

Like any other object in a database view, the definition is also stored in DBC tables. Use the following statement to get the list of views in your database:

/* List all views*/SELECT databasename,tablename from DBC.TABLES where tablekind='V'

The screenshot shows the output from our local database:

Get Teradata Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.