Teradata SQL: DDL, DML, and SQL Optimization