Derived Tables - Teradata Warehouse Miner

Teradata Warehouse Miner User Guide - Volume 2ADS Generation

Product
Teradata Warehouse Miner
Release Number
5.4.5
Published
February 2018
Language
English (United States)
Last Update
2018-05-03
dita:mapPath
qhj1503087326201.ditamap
dita:ditavalPath
ft:empty
dita:id
B035-2301
Product Category
Software

A derived table is a query embedded within another query in place of an input table in the FROM clause. Derived tables may be nested for even more complex queries. They can easily be requested with the following simple steps:

  1. Build a separate Variable Creation analysis for the “derived” table.
  2. Set the Output - storage option to Generate the SQL for this analysis but do not execute it in the “derived” table analysis.
  3. Select or “reference” the desired columns produced by the “derived” table analysis.

    The SQL generated by the “derived” table analysis will be embedded in the FROM clause of the containing analysis as a derived table!