SHOW request Examples | Teradata Database - Example: SHOW For a SELECT Request - Teradata Database

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Teradata Database
Release Number
20.00
Publication Date
June 2025
Content Type
SQL Reference
Publication ID
B035-1144-200K
ft:locale
en-US
ft:lastEdition
2026-10-28
dita:mapPath
mbm1747160743883.ditamap
dita:ditavalPath
jlp1749501702948.ditaval
ft:sourceId
dita
dita:id
mdr1472255012272
lifecycle
latest

The following example reports the DDL definitions supporting a simple SELECT request involving one view and one table. Both objects were created in database DAFDB, so qualification is unnecessary.

     SHOW
     SELECT * 
     FROM View_1, Table_2
     WHERE View1.column_1=Table2.column_3;

The report looks like this.

     *** Text of DDL statement returned.
     *** Total elapsed time was 1 second.
     -------------------------------------------------------------
     CREATE SET TABLE DAFDB.Table_2
       NO FALLBACK,
       NO BEFORE JOURNAL,
       NO AFTER JOURNAL 
        (column_1 INTEGER,
        column_2 INTEGER)
      PRIMARY INDEX(column_1);
     CREATE SET TABLE DAFDB.Table_1
       NO FALLBACK,
       NO BEFORE JOURNAL,
       NO AFTER JOURNAL
        (column_1 INTEGER)
      PRIMARY INDEX (column_1);
     CREATE VIEW View_1 AS
       SELECT column_1 FROM Table_1;