Teradata Advanced SQL
Teradata Advanced SQL
ADVANCED
INSTRUCTOR-LED TRAINING COURSE SQL
COURSE OUTLINE*
DAY 1 DAY 2 DAY 3 DAY 4
~ Introduction ~ Window Aggregates ~ Scalar Subqueries ~ Timestamps and
~ Creating Tables from ~ Rank ~ Recursive Queries Timezones
Existing Tables ~ Extended Grouping ~ Date-Time Data Types ~ Advanced Date and
~ Global Temporary Functions ~ Interval Data Types and Time Formatting
Tables ~ QUANTILE and Manipulations ~ Other Formatting
~ Window Aggregates WIDTH_BUCKET Options
~ Correlated Subqueries ~ SQL Functions
Updated: 29/Nov/18 1 of 5
Version: 16.20.0
TERADATA
ADVANCED
SQL
COURSE CONTENT
Module 0 – Introduction
~ Recommended Prerequisite Knowledge Module 3 - Global Temporary Tables
~ Course Objectives ~ What Are They?
~ Course Modules ~ Creating Global Temporary Tables
~ Materializing Global Temporary Tables
Module 1 - Creating Tables from Existing Tables ~ Space Allocation
~ SQL Assistant Cloned Table ~ Getting HELP Table Manipulations
~ Create Table AS ~ Secondary Indexes on Base Tables
~ Cloning Attributes ~ Secondary Indexes on Instances
~ Changing Table Attributes ~ Dropping Indexes on Base Tables
~ Using Subqueries to Customize Tables ~ Dropping Indexes on Instances
~ Renaming Columns ~ Collecting Statistics on Base Tables
~ Changing Column Attributes ~ Collecting Statistics on Instances
~ Using Inner Joins in a Subquery ~ Dropping Statistics on Base Tables
~ Using Other Joins in a Subquery ~ Dropping Statistics on Instances
~ Using Expressions for Columns ~ Using CREATE TABLE AS
~ Using CAST ~ Summary
~ Aliases Having Non-Standard Characters ~ Review Questions
~ Adding Unique and Primary Key Constraints ~ Lab Exercises
~ Adding Default Values
~ Populating Default Column Values Module 4 - Window Aggregates - Part 1
~ Copying Statistics ~ Window Aggregate Functions
~ Summary ~ The GROUP COUNT Window
~ Review Questions ~ Relating the Result to the Syntax
~ Lab Exercises ~ GROUP COUNT and Null
~ GROUP COUNT(*)
Module 2 - Derived and Volatile Tables ~ Group SUM and AVG Window
~ Permanent Tables for Ad Hoc Queries ~ Group MIN and MAX Window
~ Pros and Cons for Ad Hoc Perm Tables ~ Group AVG and QUALIFY
~ Temporary Table Choices ~ Qualifying a Non-Projected Column
~ Derived Tables ~ GROUP COUNT and PARTITION
~ “WITH” Derived Table Syntax Form ~ GROUP COUNT, PARTITION, and Null
~ Derived Tables and Joins ~ GROUP COUNT and Null Partitions
~ Multiple “WITH” Derived Table Syntax Form ~ GROUP SUM and Partition
~ CREATE TABLE AS and Derived Tables ~ GROUP SUM and Reordering
~ Volatile Table Syntax ~ GROUP SUM Reorder Explanation
~ Pros and Cons of Volatile Tables ~ SQL ORDER BY to Preserve Order
~ Volatile Table Restrictions ~ Window ORDER BY to Preserve Order
~ HELP and SHOW (Volatile) TABLE ~ Qualifying on a Windowed Non-Aggregated
~ ON COMMIT DELETE ROWS ~ Multiple Column Partitions
~ Implicit Transactions ~ Partitioning on Literals
~ Explicit Transactions ~ WHERE vs. QUALIFY
~ ON COMMIT PRESERVE ROWS ~ Order of Group SUM and Aggregation
~ Limitations ~ Projecting Multiple Window Aggregates
~ Volatile Tables from Derived Tables ~ Summary
~ Use with Views and Macros ~ Review Questions
~ Another View and Macro Strategy ~ Lab Exercises
~ Volatile Table Quiz
~ Summary
~ Review Questions
~ Lab Exercises
Updated: 29/Nov/18 2 of 5
Version: 16.20.0
TERADATA
ADVANCED
SQL
Updated: 29/Nov/18 3 of 5
Version: 16.20.0
TERADATA
ADVANCED
SQL
Updated: 29/Nov/18 4 of 5
Version: 16.20.0
TERADATA
ADVANCED
SQL
Updated: 29/Nov/18 5 of 5
Version: 16.20.0